Don't flag tasks checking things as changed

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-03-09 11:42:44 +01:00 committed by nphilipp
parent 3abcb2d011
commit a1ad2f07c6

View file

@ -34,12 +34,14 @@
- name: Check if the host can obtain a Kerberos ticket
command: kinit -kt /etc/krb5.keytab
ignore_errors: yes
changed_when: no
register: kinit_res
when: ipa_server is defined
- name: Ping the IPA server
command: ipa ping
ignore_errors: yes
changed_when: no
register: ipa_ping_res
when: ipa_server is defined and kinit_res.rc == 0