diff --git a/cluster.yml b/cluster.yml index 995e363090cef1cd53eb069f7de42fcaac453cfb..7e4ff3f7093a7b253ea318c56877ac215feafc9e 100644 --- a/cluster.yml +++ b/cluster.yml @@ -21,6 +21,12 @@ vars: ansible_ssh_pipelining: true gather_facts: true + pre_tasks: + - name: gather facts from all instances + setup: + delegate_to: "{{item}}" + delegate_facts: True + with_items: "{{ groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr'] }}" - hosts: k8s-cluster:etcd:calico-rr any_errors_fatal: "{{ any_errors_fatal | default(true) }}" diff --git a/upgrade-cluster.yml b/upgrade-cluster.yml index d279f563518393666fab800a2980447865905def..88969436bd4f86bad7971504a8e805deda970b84 100644 --- a/upgrade-cluster.yml +++ b/upgrade-cluster.yml @@ -21,6 +21,12 @@ vars: ansible_ssh_pipelining: true gather_facts: true + pre_tasks: + - name: gather facts from all instances + setup: + delegate_to: "{{item}}" + delegate_facts: True + with_items: "{{ groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr'] }}" - hosts: k8s-cluster:etcd:calico-rr any_errors_fatal: "{{ any_errors_fatal | default(true) }}"