Files
fedora-infra_ansible/roles/openshift/ipa-client/tasks/main.yml
Ryan Lerch a0cd459d47 Fix some references in tasks dropping .j2
When fixing conflicts when merging the PR containing commit 47c68f4,
some of the .j2 suffuxes i added in tasks were erronounusly dropped.

this fixes those.

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 19:44:59 +10:00

21 lines
729 B
YAML

---
- name: Get the IPA CA cert
slurp:
src: /etc/ipa/ca.crt
delegate_to: "{{ ipa_server }}"
register: ipa_ca_cert_var
- name: Register the IPA CA cert in a fact
set_fact:
ipa_ca_cert: "{{ ipa_ca_cert_var.content | b64decode }}"
- name: Copy ipa config template to temporary file
ansible.builtin.template:
src: "{{roles_path}}/openshift/ipa-client/templates/configmap.yml.j2"
dest: "/etc/openshift_apps/{{ipa_client_app}}/configmap-ipa-client.yml"
register: ipa_config_result
- name: Call `oc apply` on the copied file
ansible.builtin.shell: oc -n {{ipa_client_app}} apply -f /etc/openshift_apps/{{ipa_client_app}}/configmap-ipa-client.yml
when: ipa_config_result.changed or object_always_apply