enforce user root when sudo is used

pull/45/head
Smaine Kahlouch 2016-01-05 15:33:23 +01:00
parent 4e015dd3f1
commit d5320961e9
3 changed files with 4 additions and 2 deletions

View File

@ -27,6 +27,7 @@
recursive: yes
delete: yes
rsync_opts: [ '--one-file-system']
set_remote_user: false
with_items:
- "{{ kube_token_dir }}"
- "{{ kube_cert_dir }}"

View File

@ -21,12 +21,12 @@
system=yes
groups={{ kube_cert_group }}
- include: install.yml
- include: secrets.yml
tags:
- secrets
- include: install.yml
- name: Write kubelet config file
template: src=kubelet.j2 dest={{ kube_config_dir }}/kubelet backup=yes
notify:

View File

@ -43,6 +43,7 @@
recursive: yes
delete: yes
rsync_opts: [ '--one-file-system']
set_remote_user: false
with_items:
- "{{ kube_cert_dir}}/ca.pem"
- "{{ kube_cert_dir}}/node.pem"