Fix wrong syntax for jinja sub list extraction and addition of missing role template

This commit is contained in:
Erwan Miran
2018-08-29 11:35:00 +02:00
parent 58ecd312a7
commit ceb97e5809
3 changed files with 17 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
- name: Registry | Append extra templates to Registry Templates list for PodSecurityPolicy
set_fact:
registry_templates: "{{ registry_templates[:3] + registry_templates_for_psp + registry_templates[4:] }}"
registry_templates: "{{ registry_templates[:3] + registry_templates_for_psp + registry_templates[3:] }}"
when:
- podsecuritypolicy_enabled
- registry_namespace != "kube-system"