Files
fedora-infra_ansible/roles/fas2discourse/tasks/create-keytab-secret.yml
Michal Konecny b4a80bed38 [fas2discourse] Fix the path to oc binary
/root/bin/oc doesn't exist, the oc is located in /bin/oc. I assume that
this was just some manually created symlink, so let me fix that.
2025-07-01 18:47:52 +02:00

25 lines
923 B
YAML

---
# generate the templates for project to be created
- name: Fetch keytab to location used in create template step
ansible.builtin.fetch:
src: "/etc/openshift_apps/fas2discourse/fas2discourse{{ env_suffix }}-keytab.kt"
dest: "/etc/openshift_apps/fas2discourse/fas2discourse{{ env_suffix }}-keytab.kt"
flat: true
mode: "0600"
# generate the templates for project to be created
- name: Copy the templates to the host
ansible.builtin.template:
src: "secret-keytab.yml"
dest: "/root/ocp4/openshift-apps/fas2discourse-operator/secret-keytab.yml"
mode: "0770"
vars:
fas2discourse_keytab_file:
"{{ lookup('file',
'/etc/openshift_apps/fas2discourse/fas2discourse{{ env_suffix }}-keytab.kt')
}}"
# apply created openshift resources
- name: Oc apply resources
ansible.builtin.command: "/bin/oc apply -f /root/ocp4/openshift-apps/fas2discourse-operator/secret-keytab.yml"