FFU: Introduce collectd fast-forward-upgrade tasks

bp fast-forward-upgrades

Change-Id: Idfe3f05441030da9078993070307f420b01256b0
This commit is contained in:
Pradeep Kilambi 2018-03-07 12:36:14 -05:00 committed by Athlan-Guyot sofer
parent bebda4036b
commit 74f751c762

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