feat: initial commit
This commit is contained in:
parent
e19f269ec5
commit
214e91a391
16 changed files with 546 additions and 93 deletions
16
tasks/install.yaml
Normal file
16
tasks/install.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
# install haproxy
|
||||
- name: "install - haproxy"
|
||||
ansible.builtin.apt:
|
||||
name: "haproxy"
|
||||
state: "latest"
|
||||
cache_valid_time: "120"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
|
||||
# start haproxy service
|
||||
- name: "service - start haproxy"
|
||||
ansible.builtin.systemd:
|
||||
name: "haproxy"
|
||||
state: "started"
|
||||
enabled: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue