Blame view

deploy_and_run_web_app.yml 308 Bytes
4039e577   Lars Tiede   first commit
1
2
3
4
5
6
7
8
9
10
11
12
  ---
  - hosts: app_servers
    roles:
        - role: runs_web_app
  
  - hosts: load_balancer
    roles:
        - role: runs_simple_load_balancer
          app_hosts: "{{ groups.app_servers }}"
          app_port: 8000
    tasks:
        - debug: msg="Point your browser to the load balancer at {{ ansible_eth1.ipv4.address }}"