FFU: Introduce collectd fast-forward-upgrade tasks
bp fast-forward-upgrades Change-Id: Idfe3f05441030da9078993070307f420b01256b0
This commit is contained in:
parent
bebda4036b
commit
74f751c762
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user