Retry applying podsecurity policies (#4279)
parent
aadef80404
commit
4638acfe81
|
@ -46,6 +46,10 @@
|
||||||
resource: "{{item.item.type}}"
|
resource: "{{item.item.type}}"
|
||||||
filename: "{{kube_config_dir}}/{{item.item.file}}"
|
filename: "{{kube_config_dir}}/{{item.item.file}}"
|
||||||
state: "latest"
|
state: "latest"
|
||||||
|
register: result
|
||||||
|
until: result is succeeded
|
||||||
|
retries: 10
|
||||||
|
delay: 6
|
||||||
with_items: "{{ psp_manifests.results }}"
|
with_items: "{{ psp_manifests.results }}"
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['kube-master'][0]
|
- inventory_hostname == groups['kube-master'][0]
|
||||||
|
@ -69,6 +73,10 @@
|
||||||
resource: "clusterrolebinding"
|
resource: "clusterrolebinding"
|
||||||
filename: "{{ kube_config_dir }}/node-crb.yml"
|
filename: "{{ kube_config_dir }}/node-crb.yml"
|
||||||
state: latest
|
state: latest
|
||||||
|
register: result
|
||||||
|
until: result is succeeded
|
||||||
|
retries: 10
|
||||||
|
delay: 6
|
||||||
when:
|
when:
|
||||||
- rbac_enabled
|
- rbac_enabled
|
||||||
- node_crb_manifest.changed
|
- node_crb_manifest.changed
|
||||||
|
|
Loading…
Reference in New Issue