Skip to content

Commit

Permalink
Workaround for ansible/ansible#82264
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomas-adacis committed Dec 6, 2023
1 parent 36d2d03 commit b04a0ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/replication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
- (mysql_replication_master | length) > 0
tags: ['skip_ansible_galaxy']

# https://github.com/ansible/ansible/issues/82264
- name: Check master replication status.
mysql_replication:
mode: getprimary
delegate_to: "{{ mysql_replication_master_inventory_host }}"
delegate_to: "{{ mysql_replication_master_inventory_host | default(omit, true) }}"
register: master
when:
- (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)

Check warning on line 36 in tasks/replication.yml

View workflow job for this annotation

GitHub Actions / Lint

36:161 [line-length] line too long (205 > 160 characters)
Expand Down

0 comments on commit b04a0ca

Please sign in to comment.