Fix the openshift/ipa-client role

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard
2024-12-03 12:22:12 +01:00
parent e2ba0bc31a
commit c9bd987c66

View File

@@ -13,8 +13,8 @@
template:
src: "{{roles_path}}/openshift/ipa-client/templates/configmap.yml"
dest: "/etc/openshift_apps/{{ipa_client_app}}/configmap-ipa-client.yml"
register: ipa_client_configmap_template
register: ipa_config_result
- name: Call `oc apply` on the copied file
shell: oc -n {{ipa_client_app}} apply -f /etc/openshift_apps/{{ipa_client_app}}/configmap-ipa-client.yml
when: ipa_client_configmap_template.changed or ipa_client_configmap_template_fullpath.changed or object_file.changed
when: ipa_config_result.changed or object_always_apply