This commit is contained in:
nazunalika 2020-12-19 18:40:30 -07:00
parent 29c04c17ba
commit baa38c2f5c
2 changed files with 11 additions and 3 deletions

View File

@ -4,5 +4,11 @@ galaxy_info:
company: Rocky Linux Foundation
license: MIT
min_ansible_version: 2.8
galaxy_tags: []
platforms:
- name: EL
versions:
- 7
- 8
galaxy_tags:
- freeipa
dependencies: []

View File

@ -5,6 +5,7 @@
shell: /usr/sbin/ipa-client-install --unattended 2>&1 | grep "already configured"
register: ipacheck
ignore_errors: true
changed_when: false
- name: Check certificate existence
stat:
@ -73,7 +74,8 @@
group: "{{ item.owner | default(ipa_getcert_owner_default) }}"
mode: '0640'
with_items: "{{ ipa_getcert_requested_hostnames }}"
when: ipa_getcert_chain
when:
- ipa_getcert_chain
- ipa_cert_request.rc == 0
when:
- ipacheck.rc == 0
- ipa_cert_request.rc == 0