X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=puppet%2Fservices%2Fdisabled%2Fmongodb-disabled.yaml;h=0c6e2bbb41dc4a8fdad30cf0f962b382714e3588;hb=684bb3689501376f44be677adde4f00ce7185928;hp=9e58103c89fbd9b447d156e1e3fb2a6484a84791;hpb=511d34eedca27756cfbbfdd6b0e43d916745367a;p=apex-tripleo-heat-templates.git diff --git a/puppet/services/disabled/mongodb-disabled.yaml b/puppet/services/disabled/mongodb-disabled.yaml index 9e58103c..0c6e2bbb 100644 --- a/puppet/services/disabled/mongodb-disabled.yaml +++ b/puppet/services/disabled/mongodb-disabled.yaml @@ -37,6 +37,11 @@ outputs: value: service_name: mongodb_disabled upgrade_tasks: + - name: Check for mongodb service + stat: path=/usr/lib/systemd/system/mongod.service + tags: common + register: mongod_service - name: Stop and disable mongodb service on upgrade tags: step1 service: name=mongod state=stopped enabled=no + when: mongod_service.stat.exists