diff options
author | Vadim Rutkovsky <vrutkovs@redhat.com> | 2018-02-12 20:58:03 +0100 |
---|---|---|
committer | Vadim Rutkovsky <vrutkovs@redhat.com> | 2018-02-12 21:10:15 +0100 |
commit | bdf26bb9c19b920244b9fcdc4fffe1e07477650b (patch) | |
tree | 4899656736d2753fd8c5c9cbea7d5eee5832c147 /roles | |
parent | e2b4f9d521b858d69a5ae9fd57b762532cd10b92 (diff) | |
download | openshift-bdf26bb9c19b920244b9fcdc4fffe1e07477650b.tar.gz openshift-bdf26bb9c19b920244b9fcdc4fffe1e07477650b.tar.bz2 openshift-bdf26bb9c19b920244b9fcdc4fffe1e07477650b.tar.xz openshift-bdf26bb9c19b920244b9fcdc4fffe1e07477650b.zip |
etcd_scaleup: use inventory_hostname when etcd ca host is being picked
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_etcd_facts/tasks/set_etcd_ca_host.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_etcd_facts/tasks/set_etcd_ca_host.yml b/roles/openshift_etcd_facts/tasks/set_etcd_ca_host.yml index bf8d28a9b..624ad714e 100644 --- a/roles/openshift_etcd_facts/tasks/set_etcd_ca_host.yml +++ b/roles/openshift_etcd_facts/tasks/set_etcd_ca_host.yml @@ -14,10 +14,10 @@ # and /etc/etcd/generated_certs directories. - set_fact: __etcd_ca_dir_hosts: "{{ __etcd_ca_host_stat.results - | lib_utils_oo_collect('_ansible_delegated_vars.ansible_host', + | lib_utils_oo_collect('_ansible_delegated_vars.inventory_hostname', filters={'stat.path':'/etc/etcd/ca','stat.exists':True}) }}" __etcd_generated_certs_dir_hosts: "{{ __etcd_ca_host_stat.results - | lib_utils_oo_collect('_ansible_delegated_vars.ansible_host', + | lib_utils_oo_collect('_ansible_delegated_vars.inventory_hostname', filters={'stat.path':'/etc/etcd/generated_certs','stat.exists':True}) }}" run_once: true |