diff --git a/roles/installer/templates/deployments/task.yaml.j2 b/roles/installer/templates/deployments/task.yaml.j2 index fe492e74b..ba2ecc983 100644 --- a/roles/installer/templates/deployments/task.yaml.j2 +++ b/roles/installer/templates/deployments/task.yaml.j2 @@ -154,12 +154,13 @@ spec: {% if redis_security_context|length or redis_capabilities is defined %} securityContext: {% if redis_security_context|length %} -{{ redis_security_context | to_yaml | indent(12,true) }} +{{ redis_security_context | to_nice_yaml | indent(12,true) }} {%- endif %} {% if redis_capabilities is defined and redis_capabilities %} capabilities: - add: {{ redis_capabilities }} -{% endif %} + add: +{{ redis_capabilities | to_yaml | indent(16,true) }} +{%- endif %} {% endif %} args: ["redis-server", "/etc/redis.conf"] volumeMounts: @@ -198,7 +199,7 @@ spec: {{ task_security_context | to_yaml | indent(12,true) }} {%- endif %} {% if task_privileged == true %} - privileged: true + privileged: true {% endif %} {% endif %} {% if task_command %}