Missing verification of IPA

This commit is contained in:
nazunalika 2020-12-20 10:49:24 -07:00
parent 727340cd31
commit 7825c83f45

View File

@ -7,6 +7,14 @@
ignore_errors: true ignore_errors: true
changed_when: false changed_when: false
- name: Verify host is IPA enrolled
assert:
that:
- ipacheck.rc == 0 | mandatory
fail_msg: "System is not enrolled to IPA"
success_msg: "IPA enrolled, moving on"
quiet: true
- name: Check certificate existence - name: Check certificate existence
stat: stat:
path: "{{ item.key_location | default(ipa_getcert_cert_default_location) }}/{{ item.name }}.crt" path: "{{ item.key_location | default(ipa_getcert_cert_default_location) }}/{{ item.name }}.crt"