FFU: Add mongodb fast forward upgrade tasks
Change-Id: Ie1bcc672e0e5bef844a6354e1380e7d53cd67189
This commit is contained in:
parent
a197218d60
commit
a9aff0b566
@ -181,3 +181,24 @@ outputs:
|
||||
- step|int == 2
|
||||
- mongod_enabled.rc == 0
|
||||
service: name=mongod state=stopped enabled=no
|
||||
fast_forward_upgrade_tasks:
|
||||
- name: Check for mongodb service
|
||||
command: systemctl is-enabled --quiet mongod
|
||||
tags: common
|
||||
ignore_errors: True
|
||||
register: mongod_enabled_result
|
||||
when:
|
||||
- step|int == 0
|
||||
- release == 'ocata'
|
||||
- name: Set fact mongod_enabled
|
||||
set_fact:
|
||||
mongod_enabled: "{{ mongod_enabled_result.rc == 0 }}"
|
||||
when:
|
||||
- step|int == 0
|
||||
- release == 'ocata'
|
||||
- name: Stop and disable mongodb service
|
||||
when:
|
||||
- step|int == 1
|
||||
- release == 'ocata'
|
||||
- mongod_enabled|bool
|
||||
service: name=mongod state=stopped enabled=no
|
||||
|
Loading…
Reference in New Issue
Block a user