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.

21 lines
948 B

  1. ---
  2. - name: look up docker cgroup driver
  3. shell: "docker info | grep 'Cgroup Driver' | awk -F': ' '{ print $2; }'"
  4. register: docker_cgroup_driver_result
  5. changed_when: false
  6. - set_fact:
  7. standalone_kubelet: >-
  8. {%- if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] -%}true{%- else -%}false{%- endif -%}
  9. kubelet_cgroup_driver_detected: "{{ docker_cgroup_driver_result.stdout }}"
  10. - name: os specific vars
  11. include_vars: "{{ item }}"
  12. with_first_found:
  13. - files:
  14. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_version|lower|replace('/', '_') }}.yml"
  15. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_release }}.yml"
  16. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml"
  17. - "{{ ansible_distribution|lower }}.yml"
  18. - "{{ ansible_os_family|lower }}.yml"
  19. skip: true