diff --git a/ansible/kayobe-ansible-user.yml b/ansible/kayobe-ansible-user.yml index 68f716088..b09242778 100644 --- a/ansible/kayobe-ansible-user.yml +++ b/ansible/kayobe-ansible-user.yml @@ -17,6 +17,7 @@ module: command ssh -o BatchMode=yes -p {{ ssh_port }} {{ ssh_user }}@{{ ssh_host }} hostname failed_when: false changed_when: false + check_mode: no register: ssh_result vars: ssh_user: "{{ ansible_user }}" diff --git a/ansible/roles/disable-glean/tasks/main.yml b/ansible/roles/disable-glean/tasks/main.yml index 43f129fe4..cf66dce7a 100644 --- a/ansible/roles/disable-glean/tasks/main.yml +++ b/ansible/roles/disable-glean/tasks/main.yml @@ -3,6 +3,7 @@ command: systemctl list-units glean*.service --no-legend --no-pager --state=loaded register: glean_services changed_when: False + check_mode: no - name: Ensure Glean services are stopped and disabled service: diff --git a/releasenotes/notes/fix-check-mode-c0f8e1fcb09f730b.yaml b/releasenotes/notes/fix-check-mode-c0f8e1fcb09f730b.yaml new file mode 100644 index 000000000..259920ee8 --- /dev/null +++ b/releasenotes/notes/fix-check-mode-c0f8e1fcb09f730b.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes some issues seen when using the ``--check`` argument with ``kayobe + overcloud host configure``. See `story 2004798 + `__.