Files
fedora-infra_ansible/roles/fas2discourse/tasks/create-keytab-secret.yml
Ryan Lerch 462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00

25 lines
912 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
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: "/root/bin/oc apply -f /root/ocp4/openshift-apps/fas2discourse-operator/secret-keytab.yml"