Skip to content

Commit b04a0ca

Browse files
author
ptomas-adacis
committed
Workaround for ansible/ansible#82264
1 parent 36d2d03 commit b04a0ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/replication.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
- (mysql_replication_master | length) > 0
2727
tags: ['skip_ansible_galaxy']
2828

29+
# https://github.com/ansible/ansible/issues/82264
2930
- name: Check master replication status.
3031
mysql_replication:
3132
mode: getprimary
32-
delegate_to: "{{ mysql_replication_master_inventory_host }}"
33+
delegate_to: "{{ mysql_replication_master_inventory_host | default(omit, true) }}"
3334
register: master
3435
when:
3536
- (slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Replica is defined and not slave.Is_Replica) or (slave.Is_Slave is not defined and slave.Is_Replica is not defined and slave is failed)

0 commit comments

Comments
 (0)