Skip to content

Commit 4a1d613

Browse files
author
Michiel Piscaer
committed
chnage the condition
1 parent 9442dd3 commit 4a1d613

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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)
9+
- `pacemaker_remote_group`: Ansible group name for pacemaker-remote cluster (default: false, *mandatory*)
1010
- `pacemaker_corosync_ring_interface`: Interface to use for ring0 communications (default: false, *mandatory*)
1111
- `pacemaker_corosync_fqdn`: Whether use inventory_hostname or ansible_fqdn as node name for corosync (default: false)

tasks/pacemaker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
state: present
1919
with_items:
2020
- pacemaker
21-
when: "'pacemaker_corosync_group' in group_names"
21+
when: "inventory_hostname in groups[pacemaker_corosync_group]"
2222

2323
- name: Installs pacemaker-remote
2424
package:
2525
name: "{{ item }}"
2626
state: present
2727
with_items:
2828
- pacemaker-remote
29-
when: "'pacemaker_remote_group' in group_names"
29+
when: "inventory_hostname in groups[pacemaker_remote_group]"
3030

3131
- name: Install haveged
3232
package:

0 commit comments

Comments
 (0)