You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
697 B
36 lines
697 B
- name: Setup HAProxy
|
|
hosts: all
|
|
become: yes
|
|
become_method: sudo
|
|
become_user: root
|
|
tasks:
|
|
- name: Install pacemaker
|
|
package:
|
|
name: pacemaker
|
|
state: present
|
|
- name: Install corosync
|
|
package:
|
|
name: corosync
|
|
state: present
|
|
- name: Install pcs
|
|
package:
|
|
name: pcs
|
|
state: present
|
|
- name: Install fence-agents
|
|
package:
|
|
name: fence-agents
|
|
state: present
|
|
- name: Start pcsd
|
|
service:
|
|
name: pscd
|
|
enabled: true
|
|
state: started
|
|
- name: Install package
|
|
package:
|
|
name: haproxy
|
|
state: present
|
|
- name: Start HAProxy
|
|
service:
|
|
name: haproxy
|
|
enabled: true
|
|
state: started |