mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 21:41:53 +08:00
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>
21 lines
729 B
YAML
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
|