From db162014abf5a72a497fe7f5906ce1c6a1982ae5 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Tue, 15 Mar 2016 17:59:39 -0400 Subject: Only mask etcd service for containerized installls when it's installed --- roles/etcd/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roles/etcd') 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 -- cgit v1.2.3