diff --git a/cluster.yml b/cluster.yml index 9bdb9000cbd4a6e41c6c00c0c438e6a176a420b0..e93983c18248e5ae99a5223aeaf2b29fa4a05d71 100644 --- a/cluster.yml +++ b/cluster.yml @@ -35,13 +35,14 @@ any_errors_fatal: "{{ any_errors_fatal | default(true) }}" vars: ansible_ssh_pipelining: true - gather_facts: true + gather_facts: false pre_tasks: - name: gather facts from all instances setup: delegate_to: "{{item}}" - delegate_facts: True + delegate_facts: true with_items: "{{ groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([]) }}" + run_once: true - hosts: k8s-cluster:etcd:calico-rr any_errors_fatal: "{{ any_errors_fatal | default(true) }}" diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml index 8ec6cc1113aa3ce78e1ea5b442cbc98883d01dc4..a6e86e40b56ca824ea7ddb67c8e69c91cdf5c1d6 100644 --- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml @@ -1,10 +1,4 @@ --- -- name: Stop if ansible version is too low - assert: - that: - - ansible_version.full is version('2.3.0', '>=') - run_once: yes - - name: Stop if either kube-master, kube-node or etcd is empty assert: that: groups.get('{{ item }}')