haproxy.yml 623 B

123456789101112131415161718
  1. ---
  2. - name: apply haproxy role
  3. hosts: all
  4. # vars:
  5. # ansible_python_interpreter: /usr/bin/python3
  6. # ansible_user: vagrant
  7. # ansible_password: vagrant
  8. # ssl_name: "nextcloud.test"
  9. # network_allowed: "192.168.56.0/24"
  10. # haproxy_backend_servers:
  11. # { name: 'web', ip: '192.168.56.14:8000' }
  12. # pre_tasks:
  13. # - name: define ansible_python_interpreter group // linux distribution
  14. # set_fact:
  15. # ansible_python_interpreter: /usr/bin/python2
  16. # when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
  17. roles:
  18. - { role: haproxy }