Merge "Don't fail ironic upgrade if xinetd isn't present"

This commit is contained in:
Zuul 2018-09-18 21:15:23 +00:00 committed by Gerrit Code Review
commit 089876e91c
1 changed files with 5 additions and 0 deletions

View File

@ -95,10 +95,15 @@ outputs:
file:
path: /etc/xinetd.d/tftp
state: absent
- name: query if xinetd is active
failed_when: false
shell: systemctl is-active xinetd
register: xinetd_active_result
- name: restart xinetd in order to free tftp port
service:
name: xinetd
state: restarted
when: xinetd_active_result.rc == 0
- when: step|int == 3
block:
- name: Set fact for removal of tftp-server package