summaryrefslogtreecommitdiffstats
path: root/roles/etcd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2017-06-20 10:46:38 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2017-06-20 10:48:50 +0200
commitc01d8bc6f65f2c7a4f2dc831414375f2d874273e (patch)
treea0b087cd5a54b06bafbb7b328612f31bd34478fd /roles/etcd
parentfabc141055b93d541701c82ce71d31a0a1d1bb6f (diff)
downloadopenshift-c01d8bc6f65f2c7a4f2dc831414375f2d874273e.tar.gz
openshift-c01d8bc6f65f2c7a4f2dc831414375f2d874273e.tar.bz2
openshift-c01d8bc6f65f2c7a4f2dc831414375f2d874273e.tar.xz
openshift-c01d8bc6f65f2c7a4f2dc831414375f2d874273e.zip
etcd, system_container: do not enable system etcd
if etcd is installed and it is not the system container, only unmask the service but do not enable it. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'roles/etcd')
-rw-r--r--roles/etcd/tasks/system_container.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/etcd/tasks/system_container.yml b/roles/etcd/tasks/system_container.yml
index f1d948d16..547cb448d 100644
--- a/roles/etcd/tasks/system_container.yml
+++ b/roles/etcd/tasks/system_container.yml
@@ -24,12 +24,12 @@
systemd:
name: etcd
state: stopped
- enabled: yes
+ enabled: no
masked: no
daemon_reload: yes
register: task_result
failed_when: task_result|failed and 'could not' not in task_result.msg|lower
- when: "'etcd' in etcd_result.stdout"
+ when: "'etcd' not in etcd_result.stdout"
- name: Disable etcd_container
systemd: