Merge "Remove tags from upgrade tasks for ptp.yaml."

This commit is contained in:
Zuul 2018-02-22 14:55:15 +00:00 committed by Gerrit Code Review
commit 2fff905bee
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