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 company: Rocky Linux Foundation
license: MIT license: MIT
min_ansible_version: 2.8 min_ansible_version: 2.8
galaxy_tags: [] platforms:
- name: EL
versions:
- 7
- 8
galaxy_tags:
- freeipa
dependencies: [] dependencies: []

View File

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