Don't fail ironic upgrade if xinetd isn't present
When upgrading from Rocky to master in CI, we don't seem to have xinetd present in the overcloud, and attempting to restart it fails the upgrade. Check if it's running before trying to restart it. Change-Id: I9f45340cf6caf7811aa03a1b2aa16eec599d4faa Closes-Bug: #1792527
This commit is contained in:
parent
dec447e92f
commit
8e127bce07
@ -95,10 +95,15 @@ outputs:
|
|||||||
file:
|
file:
|
||||||
path: /etc/xinetd.d/tftp
|
path: /etc/xinetd.d/tftp
|
||||||
state: absent
|
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
|
- name: restart xinetd in order to free tftp port
|
||||||
service:
|
service:
|
||||||
name: xinetd
|
name: xinetd
|
||||||
state: restarted
|
state: restarted
|
||||||
|
when: xinetd_active_result.rc == 0
|
||||||
- when: step|int == 3
|
- when: step|int == 3
|
||||||
block:
|
block:
|
||||||
- name: Set fact for removal of tftp-server package
|
- name: Set fact for removal of tftp-server package
|
||||||
|
Loading…
Reference in New Issue
Block a user