mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
/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.
25 lines
923 B
YAML
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"
|