Merge "Restart certmnonger after registering system with IPA" into stable/queens

This commit is contained in:
Zuul 2019-10-31 18:31:59 +00:00 committed by Gerrit Code Review
commit d8ca5ae427
2 changed files with 20 additions and 4 deletions

View File

@ -181,7 +181,18 @@ outputs:
ipa-client-install $OPTS
- name: run enrollment script
shell: /root/setup-ipa-client.sh >> /var/log/setup-ipa-client-ansible.log 2>&1
args:
creates: /etc/ipa/default.conf
- name: determine if client is already enrolled
stat:
path: /etc/ipa/default.conf
register: ipa_default_conf
- block:
- name: run enrollment script
shell: /root/setup-ipa-client.sh >> /var/log/setup-ipa-client-ansible.log 2>&1
- name: restart certmonger service
systemd:
state: restarted
daemon_reload: true
name: certmonger.service
when: ipa_default_conf.stat.exists == False

View File

@ -0,0 +1,5 @@
---
fixes:
- Restart certmnonger after registering system with IPA. This
prevents cert requests not completely correctly when doing a
brownfield update.