deploy_and_run_web_app.yml 308 Bytes
---
- 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 }}"