diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-11-04 11:59:28 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-11-04 11:59:28 -0500 |
commit | 7869fb8c26a96c1e0ee74b930fd0da8a9952cb52 (patch) | |
tree | 37b83c517769c4730b680b602672ba3f9245137a /roles/etcd_common/tasks | |
parent | a706860af853be6d8bc77ea38593467e827ed527 (diff) | |
parent | f5e83fc2330d6f784df3859f5305d4b80cc0c469 (diff) | |
download | openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.tar.gz openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.tar.bz2 openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.tar.xz openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.zip |
Merge pull request #811 from openshift/master
master to prod
Diffstat (limited to 'roles/etcd_common/tasks')
-rw-r--r-- | roles/etcd_common/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/etcd_common/tasks/main.yml b/roles/etcd_common/tasks/main.yml new file mode 100644 index 000000000..cd108495d --- /dev/null +++ b/roles/etcd_common/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- set_fact: + etcd_host_int_map: "{{ lookup('template', '../templates/host_int_map.j2') | from_yaml }}" + +- fail: + msg: "Interface {{ item.value.etcd_interface }} not found on host {{ item.key }}" + when: "'etcd_interface' in item.value and 'interface' not in item.value" + with_dict: etcd_host_int_map + +- fail: + msg: IPv4 address not found for {{ item.value.interface.device }} on host {{ item.key }} + when: "'ipv4' not in item.value.interface or 'address' not in item.value.interface.ipv4" + with_dict: etcd_host_int_map |