Improve OVN cluster setup idempotence report
Current command/shell modules for ovn cluster setup while fetching current deployment state do not actually have changed_when: false which causes these tasks to end up in "Changed" state Change-Id: Id4b947d0b7aaa54eb3bbe58d2593ad6b49009b5c
This commit is contained in:
parent
d81a2fb7aa
commit
e45107b4fd
@ -20,9 +20,8 @@
|
||||
command: ovsdb-tool db-is-clustered /var/lib/ovn/ovnnb_db.db
|
||||
ignore_errors: true
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
register: _check_cluster_db
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
# We need to clean existing ovn db/lock file before cluster join.
|
||||
- name: Clean up db/lock files before creating ovn cluster
|
||||
@ -51,9 +50,8 @@
|
||||
loop_var: container
|
||||
run_once: true
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
register: _find_leader
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
# set leader_node variable
|
||||
- name: Set leader_node fact
|
||||
|
Loading…
Reference in New Issue
Block a user