Remove tags from upgrade tasks for ptp.yaml.
After merging [0], the step for each upgrade_task is now handled in a 'when' condition. This patch changes all the 'tags:' in upgrade_tasks to their corresponding 'when:' statement. [0] https://review.openstack.org/#/c/510902/ Change-Id: I945a50d559c3f01506673099d69013b824721d03
This commit is contained in:
parent
2218e7baba
commit
cf64b89433
@ -89,14 +89,18 @@ outputs:
|
|||||||
register: ntp_enabled
|
register: ntp_enabled
|
||||||
- name: Validation
|
- name: Validation
|
||||||
shell: /usr/bin/systemctl show 'ntpd' --property ActiveState | grep '\bactive\b'
|
shell: /usr/bin/systemctl show 'ntpd' --property ActiveState | grep '\bactive\b'
|
||||||
when: ntp_enabled.rc == 0
|
tags: validation
|
||||||
tags: step0,validation
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- ntp_enabled.rc == 0
|
||||||
- name: Stop NTP service
|
- name: Stop NTP service
|
||||||
service: name=ntpd state=stopped
|
service: name=ntpd state=stopped
|
||||||
when: ntp_enabled.rc == 0
|
when:
|
||||||
tags: step2
|
- step|int == 2
|
||||||
|
- ntp_enabled.rc == 0
|
||||||
- name: Disable NTP service
|
- name: Disable NTP service
|
||||||
service: name=ntpd state=stopped
|
service: name=ntpd state=stopped
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
when: ntp_enabled.rc == 0
|
when:
|
||||||
tags: step2
|
- step|int == 2
|
||||||
|
- ntp_enabled.rc == 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user