Initial commit
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s
This commit is contained in:
14
roles/configure_haproxy/tasks/main.yml
Normal file
14
roles/configure_haproxy/tasks/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Copy haproxy.cfg
|
||||
ansible.builtin.copy:
|
||||
src: haproxy.cfg.jinja
|
||||
dest: /etc/haproxy/haproxy.cfg
|
||||
mode: '0600'
|
||||
owner: root
|
||||
group: root
|
||||
notify: Reload haproxy
|
||||
- name: Enable and start haproxy
|
||||
ansible.builtin.systemd_service:
|
||||
name: haproxy.service
|
||||
state: started
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user