aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/disabled
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/services/disabled')
-rw-r--r--puppet/services/disabled/mongodb-disabled.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/puppet/services/disabled/mongodb-disabled.yaml b/puppet/services/disabled/mongodb-disabled.yaml
index 9e58103c..c01a91fb 100644
--- a/puppet/services/disabled/mongodb-disabled.yaml
+++ b/puppet/services/disabled/mongodb-disabled.yaml
@@ -37,6 +37,10 @@ outputs:
value:
service_name: mongodb_disabled
upgrade_tasks:
+ - name: Check for mongodb service
+ stat: path=/usr/lib/systemd/system/mongod.service
+ 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