Fix audit-policies deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0c49098177
commit
743684edd4
3 changed files with 12 additions and 4 deletions
|
|
@ -133,18 +133,21 @@
|
|||
|
||||
- name: Secure etcd directory
|
||||
file:
|
||||
path: "/var/lib/etcd"
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0700
|
||||
with_items:
|
||||
- "/var/lib/etcd"
|
||||
- "/etc/kubernetes/policies"
|
||||
when:
|
||||
- kubernetes_master|bool
|
||||
|
||||
- name: Configure kubelet service
|
||||
file:
|
||||
src: "etc/kubernetes/audit-policy.yaml"
|
||||
dest: "/etc/kubernetes/audit-policy.yaml"
|
||||
src: "etc/kubernetes/policies/audit-policy.yaml"
|
||||
dest: "/etc/kubernetes/policies/audit-policy.yaml"
|
||||
group: root
|
||||
owner: root
|
||||
mode: 0644
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue