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:
Jose Luis Franco Arza 2018-02-20 16:33:05 +01:00
parent 2218e7baba
commit cf64b89433
1 changed files with 10 additions and 6 deletions

View File

@ -89,14 +89,18 @@ outputs:
register: ntp_enabled
- name: Validation
shell: /usr/bin/systemctl show 'ntpd' --property ActiveState | grep '\bactive\b'
when: ntp_enabled.rc == 0
tags: step0,validation
tags: validation
when:
- step|int == 0
- ntp_enabled.rc == 0
- name: Stop NTP service
service: name=ntpd state=stopped
when: ntp_enabled.rc == 0
tags: step2
when:
- step|int == 2
- ntp_enabled.rc == 0
- name: Disable NTP service
service: name=ntpd state=stopped
ignore_errors: True
when: ntp_enabled.rc == 0
tags: step2
when:
- step|int == 2
- ntp_enabled.rc == 0