Skip to content

Commit 9442dd3

Browse files
author
Michiel Piscaer
committed
add pacemaker-remote
1 parent 078f1f8 commit 9442dd3

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Deploys corosync/pacemaker
66
# Variables
77

88
- `pacemaker_corosync_group`: Ansible group name for corosync cluster (default: false, *mandatory*)
9+
- `pacemaker_remote_group`: Ansible group name for pacemaker-remote cluster (default: false)
910
- `pacemaker_corosync_ring_interface`: Interface to use for ring0 communications (default: false, *mandatory*)
1011
- `pacemaker_corosync_fqdn`: Whether use inventory_hostname or ansible_fqdn as node name for corosync (default: false)
11-

handlers/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
with_items:
77
- corosync
88
- pacemaker
9+
- pacemaker-remote

tasks/pacemaker.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,28 @@
55
- ansible_os_family | lower == 'redhat'
66
- ansible_distribution_major_version is version('8', '=')
77

8-
- name: Installs pacemaker & corosync
8+
- name: Installs corosync
99
package:
1010
name: "{{ item }}"
1111
state: present
1212
with_items:
1313
- corosync
14+
15+
- name: Installs pacemaker
16+
package:
17+
name: "{{ item }}"
18+
state: present
19+
with_items:
1420
- pacemaker
21+
when: "'pacemaker_corosync_group' in group_names"
22+
23+
- name: Installs pacemaker-remote
24+
package:
25+
name: "{{ item }}"
26+
state: present
27+
with_items:
28+
- pacemaker-remote
29+
when: "'pacemaker_remote_group' in group_names"
1530

1631
- name: Install haveged
1732
package:

0 commit comments

Comments
 (0)