123456789101112131415161718 |
- ---
- - name: apply haproxy role
- hosts: all
- # vars:
- # ansible_python_interpreter: /usr/bin/python3
- # ansible_user: vagrant
- # ansible_password: vagrant
- # ssl_name: "nextcloud.test"
- # network_allowed: "192.168.56.0/24"
- # haproxy_backend_servers:
- # { name: 'web', ip: '192.168.56.14:8000' }
- # pre_tasks:
- # - name: define ansible_python_interpreter group // linux distribution
- # set_fact:
- # ansible_python_interpreter: /usr/bin/python2
- # when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
- roles:
- - { role: haproxy }
|