summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-11-20 17:43:08 -0500
committerMichael Gugino <mgugino@redhat.com>2017-11-20 17:43:08 -0500
commit85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e (patch)
tree94a48919c5bd29a7653486309b4929fb21ac7d8b /roles/etcd/tasks
parent6313f519307cf50055589c3876d8bec398bbc4d4 (diff)
downloadopenshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.tar.gz
openshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.tar.bz2
openshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.tar.xz
openshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.zip
Refactor etcd image
Simplify logic for etcd_image
Diffstat (limited to 'roles/etcd/tasks')
-rw-r--r--roles/etcd/tasks/main.yml2
-rw-r--r--roles/etcd/tasks/system_container.yml4
2 files changed, 3 insertions, 3 deletions
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml
index 3e69af314..fabe66b91 100644
--- a/roles/etcd/tasks/main.yml
+++ b/roles/etcd/tasks/main.yml
@@ -20,7 +20,7 @@
- block:
- name: Pull etcd container
- command: docker pull {{ openshift.etcd.etcd_image }}
+ command: docker pull {{ etcd_image }}
register: pull_result
changed_when: "'Downloaded newer image' in pull_result.stdout"
diff --git a/roles/etcd/tasks/system_container.yml b/roles/etcd/tasks/system_container.yml
index f71d9b551..82ac4fc84 100644
--- a/roles/etcd/tasks/system_container.yml
+++ b/roles/etcd/tasks/system_container.yml
@@ -5,7 +5,7 @@
tasks_from: proxy
- name: Pull etcd system container
- command: atomic pull --storage=ostree {{ openshift.etcd.etcd_image }}
+ command: atomic pull --storage=ostree {{ etcd_image }}
register: pull_result
changed_when: "'Pulling layer' in pull_result.stdout"
@@ -57,7 +57,7 @@
- name: Install or Update Etcd system container package
oc_atomic_container:
name: etcd
- image: "{{ openshift.etcd.etcd_image }}"
+ image: "{{ etcd_image }}"
state: latest
values:
- ETCD_DATA_DIR=/var/lib/etcd