2017-09-27 13:47:47 +00:00
|
|
|
---
|
2017-09-19 16:47:43 +00:00
|
|
|
- name: look up docker cgroup driver
|
|
|
|
shell: "docker info | grep 'Cgroup Driver' | awk -F': ' '{ print $2; }'"
|
|
|
|
register: docker_cgroup_driver_result
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
standalone_kubelet: >-
|
|
|
|
{%- if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] -%}true{%- else -%}false{%- endif -%}
|
|
|
|
kubelet_cgroup_driver_detected: "{{ docker_cgroup_driver_result.stdout }}"
|