Skip to content

Commit 26a51fc

Browse files
committed
Read authkey even in check mode
1 parent 89d3134 commit 26a51fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tasks/pacemaker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
local_action: tempfile
2323
register: authkey_tempfile
2424
changed_when: False
25+
check_mode: no
2526
when: inventory_hostname != groups[pacemaker_corosync_group][0]
2627

2728
- name: Fetch authkey for other nodes
2829
fetch: src=/etc/corosync/authkey dest="{{ authkey_tempfile.path }}" flat=yes
2930
delegate_to: "{{ groups[pacemaker_corosync_group][0] }}"
3031
changed_when: False
32+
check_mode: no
3133
when: inventory_hostname != groups[pacemaker_corosync_group][0]
3234

3335
- name: Copy authkey to other nodes
@@ -41,6 +43,7 @@
4143
path: "{{ authkey_tempfile.path }}"
4244
state: "absent"
4345
changed_when: False
46+
check_mode: no
4447
when: inventory_hostname != groups[pacemaker_corosync_group][0]
4548

4649
- name: Chowns authkeys

0 commit comments

Comments
 (0)