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.

10 lines
442 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 }}"