Merge "FFU: Introduce collectd fast-forward-upgrade tasks"

This commit is contained in:
Zuul 2018-03-16 01:02:00 +00:00 committed by Gerrit Code Review
commit fbb6af9bc2

View File

@ -147,3 +147,23 @@ outputs:
when:
- step|int == 2
- remove_collectd_package|bool
fast_forward_upgrade_tasks:
- name: Check if collectd.service is deployed
command: systemctl is-enabled --quiet collectd.service
ignore_errors: True
register: collectd_enabled_result
when:
- step|int == 0
- release == 'ocata'
- name: Set fact collectd_enabled
set_fact:
collectd_enabled: "{{ collectd_enabled_result.rc == 0 }}"
when:
- step|int == 0
- release == 'ocata'
- name: Stop collectd service
service: name=collectd.service state=stopped enabled=no
when:
- step|int == 1
- release == 'ocata'
- collectd_enabled|bool