Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update replication.yml to use "| default(omit, true)" for delegate_to #533

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/replication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
- 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 33 in tasks/replication.yml

View workflow job for this annotation

GitHub Actions / Lint

33:161 [line-length] line too long (205 > 160 characters)
- mysql_replication_role == 'slave'
- (mysql_replication_master | length) > 0
tags: ['skip_ansible_galaxy']
Expand All @@ -45,7 +45,7 @@
master_log_pos: "{{ master.Position }}"
ignore_errors: true
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 48 in tasks/replication.yml

View workflow job for this annotation

GitHub Actions / Lint

48:161 [line-length] line too long (205 > 160 characters)
- mysql_replication_role == 'slave'
- mysql_replication_user.name is defined
- (mysql_replication_master | length) > 0
Expand All @@ -54,7 +54,7 @@
mysql_replication:
mode: startreplica
when:
- (slave.Is_Slave is defined and slave.Is_Slave) or (slave.Is_Replica is defined and 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 57 in tasks/replication.yml

View workflow job for this annotation

GitHub Actions / Lint

57:161 [line-length] line too long (197 > 160 characters)
- mysql_replication_role == 'slave'
- (mysql_replication_master | length) > 0
tags: ['skip_ansible_galaxy']
Loading