haproxy starter
This commit is contained in:
15
haproxy.yml
Normal file
15
haproxy.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
- name: Setup HAProxy
|
||||||
|
hosts: all
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
become_user: root
|
||||||
|
tasks:
|
||||||
|
- name: Install package
|
||||||
|
package:
|
||||||
|
name: haproxy
|
||||||
|
state: present
|
||||||
|
- name: Start HAProxy
|
||||||
|
service:
|
||||||
|
name: haproxy
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
Reference in New Issue
Block a user