summaryrefslogtreecommitdiffstats
path: root/roles/etcd
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-03-15 17:59:39 -0400
committerScott Dodson <sdodson@redhat.com>2016-03-15 17:59:39 -0400
commitdb162014abf5a72a497fe7f5906ce1c6a1982ae5 (patch)
tree24454847e5da6ca8abefc2783fb1aa04086a3913 /roles/etcd
parenta9ff7af9354292be391f017efb83b998ce23c63f (diff)
downloadopenshift-db162014abf5a72a497fe7f5906ce1c6a1982ae5.tar.gz
openshift-db162014abf5a72a497fe7f5906ce1c6a1982ae5.tar.bz2
openshift-db162014abf5a72a497fe7f5906ce1c6a1982ae5.tar.xz
openshift-db162014abf5a72a497fe7f5906ce1c6a1982ae5.zip
Only mask etcd service for containerized installls when it's installed
Diffstat (limited to 'roles/etcd')
-rw-r--r--roles/etcd/tasks/main.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml
index d6956de71..064544b03 100644
--- a/roles/etcd/tasks/main.yml
+++ b/roles/etcd/tasks/main.yml
@@ -36,8 +36,12 @@
state: stopped
enabled: no
+- name: Check for etcd service presence
+ command: systemctl show etcd.service
+ register: etcd_show
+
- name: Mask system etcd when containerized
- when: openshift.common.is_containerized | bool
+ when: openshift.common.is_containerized | bool and 'LoadState=not-found' not in etcd_show.stdout
command: systemctl mask etcd
- name: Reload systemd units