Browse Source

etcd_scaleup: use inventory_hostname when etcd ca host is being picked

Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
Vadim Rutkovsky 7 years ago
parent
commit
bdf26bb9c1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_etcd_facts/tasks/set_etcd_ca_host.yml

+ 2 - 2
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