diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-03-15 17:59:39 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-03-15 17:59:39 -0400 |
commit | db162014abf5a72a497fe7f5906ce1c6a1982ae5 (patch) | |
tree | 24454847e5da6ca8abefc2783fb1aa04086a3913 /roles/etcd/tasks | |
parent | a9ff7af9354292be391f017efb83b998ce23c63f (diff) | |
download | openshift-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/tasks')
-rw-r--r-- | roles/etcd/tasks/main.yml | 6 |
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 |