Merge "Negative seqno need to be considered when comparing seqno"
This commit is contained in:
commit
db3f0fa08f
@ -74,7 +74,7 @@
|
||||
shell:
|
||||
cmd: |
|
||||
if [[ ! -z {{ hostvars[inventory_hostname]['seqno'] }} && ! -z {{ hostvars[item]['seqno'] }} &&
|
||||
{{ hostvars[inventory_hostname]['seqno'] }} =~ ^[0-9]+$ && {{ hostvars[item]['seqno'] }} =~ ^[0-9]+$ &&
|
||||
{{ hostvars[inventory_hostname]['seqno'] }} =~ ^-?[0-9]+$ && {{ hostvars[item]['seqno'] }} =~ ^-?[0-9]+$ &&
|
||||
{{ hostvars[inventory_hostname]['seqno'] }} -lt {{ hostvars[item]['seqno'] }} ]]; then echo {{ hostvars[item]['seqno'] }}; fi
|
||||
with_items: "{{ groups['mariadb'] }}"
|
||||
register: seqno_compare
|
||||
|
Loading…
Reference in New Issue
Block a user