2015-10-04 04:19:50 +08:00
|
|
|
---
|
2017-02-09 05:41:36 +08:00
|
|
|
- name: install | Set SSL CA directories
|
|
|
|
set_fact:
|
|
|
|
ssl_ca_dirs: "[
|
|
|
|
{% if ansible_os_family in ['CoreOS', 'Container Linux by CoreOS'] -%}
|
|
|
|
'/usr/share/ca-certificates',
|
|
|
|
{% elif ansible_os_family == 'RedHat' -%}
|
|
|
|
'/etc/pki/tls',
|
|
|
|
'/etc/pki/ca-trust',
|
|
|
|
{% elif ansible_os_family == 'Debian' -%}
|
|
|
|
'/usr/share/ca-certificates',
|
|
|
|
{% endif -%}
|
|
|
|
]"
|
|
|
|
tags: facts
|
|
|
|
|
2017-02-10 13:34:43 +08:00
|
|
|
- include: "install_{{ kubelet_deployment_type }}.yml"
|
|
|
|
|
2017-02-10 19:50:26 +08:00
|
|
|
- name: install | Write kubelet systemd init file
|
2017-06-27 12:27:25 +08:00
|
|
|
template:
|
2017-02-10 13:34:43 +08:00
|
|
|
src: "kubelet.{{ kubelet_deployment_type }}.service.j2"
|
|
|
|
dest: "/etc/systemd/system/kubelet.service"
|
|
|
|
backup: "yes"
|
2017-02-10 19:50:26 +08:00
|
|
|
notify: restart kubelet
|