You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
538 B

  1. ---
  2. - name: Calico | Disable calico-node service if it exists
  3. service:
  4. name: calico-node
  5. state: stopped
  6. enabled: no
  7. failed_when: false
  8. - name: Calico | Get kubelet hostname
  9. shell: >-
  10. {{ bin_dir }}/kubectl get node -o custom-columns='NAME:.metadata.name,INTERNAL-IP:.status.addresses[?(@.type=="InternalIP")].address'
  11. | egrep "{{ ansible_all_ipv4_addresses | join('$|') }}$" | cut -d" " -f1
  12. register: calico_kubelet_name
  13. delegate_to: "{{ groups['kube-master'][0] }}"
  14. when:
  15. - "cloud_provider is defined"