Плейбук Ansible по развертыванию haproxy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
--- - hosts: haproxy_nodes become: yes tasks: - name: Установка HAProxy apt: name: haproxy state: present - name: Настройка HAProxy template: src: haproxy.cfg.j2 dest: "/etc/haproxy/haproxy.cfg" mode: '0644' - name: Перезапуск HAProxy systemd: name: haproxy state: restarted |