diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-03 08:29:52 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-03 08:29:52 -0500 |
commit | 94c5c1fe5c280054132077dedcc1d0b96558a91f (patch) | |
tree | 4cfbf11355dbf2e2631cfe8b9b20937ba4f445da /roles/etcd/tasks | |
parent | a4d5e59c413746cb1715b15a9e158be3f3a94a54 (diff) | |
parent | 02a6d993509ac395165c504dba7b92c4f2eb907c (diff) | |
download | openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.tar.gz openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.tar.bz2 openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.tar.xz openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.zip |
Merge pull request #702 from detiber/etcd_cert_fix
Fix etcd cert generation when etcd_interface is defined
Diffstat (limited to 'roles/etcd/tasks')
-rw-r--r-- | roles/etcd/tasks/main.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml index 656901409..fcbdecd37 100644 --- a/roles/etcd/tasks/main.yml +++ b/roles/etcd/tasks/main.yml @@ -1,4 +1,12 @@ --- +- fail: + msg: Interface {{ etcd_interface }} not found + when: "'ansible_' ~ etcd_interface not in hostvars[inventory_hostname]" + +- fail: + msg: IPv4 address not found for {{ etcd_interface }} + when: "'ipv4' not in hostvars[inventory_hostname]['ansible_' ~ etcd_interface] or 'address' not in hostvars[inventory_hostname]['ansible_' ~ etcd_interface].ipv4" + - name: Install etcd yum: pkg=etcd-2.* state=present @@ -49,5 +57,5 @@ enabled: yes register: start_result -- pause: seconds=30 - when: start_result | changed +- set_fact: + etcd_service_status_changed = start_result | changed |