Merge "Disable pxe_tftp systemd services during upgrade"

This commit is contained in:
Zuul 2019-12-03 20:43:11 +00:00 committed by Gerrit Code Review
commit d0b6fa9806
1 changed files with 13 additions and 0 deletions

View File

@ -104,6 +104,19 @@ outputs:
name: xinetd
state: restarted
when: xinetd_active_result.rc == 0
- name: Check if ironic_pxe_tftp is enabled
command: systemctl is-enabled --quiet ironic_pxe_tftp
ignore_errors: True
register: ironic_pxe_tftp_enabled_result
- name: Set fact ironic_pxe_tftp_enabled
set_fact:
ironic_pxe_tftp_enabled: "{{ ironic_pxe_tftp_enabled_result.rc == 0 }}"
- name: Stop ironic_pxe_tftp service
when:
- step|int == 1
- ironic_pxe_tftp_enabled_result|bool
service: name=ironic_pxe_tftp state=stopped enabled=no
docker_config:
step_4:
ironic_pxe_tftp: