summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-07-04 15:25:02 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-07-04 15:25:21 +0200
commit61e2d5d539677a236b48ee92ad7b618a232e3833 (patch)
tree5ceb999ae7e0247db86b799814cb54542fe8196a /roles/etcd/tasks
parent950bb48b4961f430cda887dc94642a8a1c1a3663 (diff)
downloadopenshift-61e2d5d539677a236b48ee92ad7b618a232e3833.tar.gz
openshift-61e2d5d539677a236b48ee92ad7b618a232e3833.tar.bz2
openshift-61e2d5d539677a236b48ee92ad7b618a232e3833.tar.xz
openshift-61e2d5d539677a236b48ee92ad7b618a232e3833.zip
drop etcdctl before the etcd_container service
If the etcdctl is dropped after the etcd_container is enabled, label of /var/lib/etcd directory is set to var_lib_t instead of virt_sandbox_file_t.
Diffstat (limited to 'roles/etcd/tasks')
-rw-r--r--roles/etcd/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml
index 586aebb11..f0661209f 100644
--- a/roles/etcd/tasks/main.yml
+++ b/roles/etcd/tasks/main.yml
@@ -10,6 +10,12 @@
package: name=etcd{{ '-' + etcd_version if etcd_version is defined else '' }} state=present
when: not etcd_is_containerized | bool
+- include_role:
+ name: etcd_common
+ vars:
+ r_etcd_common_action: drop_etcdctl
+ when: openshift_etcd_etcdctl_profile | default(true) | bool
+
- block:
- name: Pull etcd container
command: docker pull {{ openshift.etcd.etcd_image }}
@@ -120,12 +126,6 @@
enabled: yes
register: start_result
-- include_role:
- name: etcd_common
- vars:
- r_etcd_common_action: drop_etcdctl
- when: openshift_etcd_etcdctl_profile | default(true) | bool
-
- name: Set fact etcd_service_status_changed
set_fact:
etcd_service_status_changed: "{{ start_result | changed }}"