fas2discourse: swap copy for fetch in task
Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
7949f778d9
commit
d9a08c4e55
1 changed files with 5 additions and 6 deletions
|
@ -1,14 +1,13 @@
|
||||||
---
|
---
|
||||||
# generate the templates for project to be created
|
# generate the templates for project to be created
|
||||||
- name: create the templates
|
- name: fetch keytab to location used in create template step
|
||||||
ansible.builtin.copy:
|
ansible.builtin.fetch:
|
||||||
src: "/etc/openshift_apps/fas2discourse/fas2discourse{{ env_suffix }}-keytab.kt"
|
src: "/etc/openshift_apps/fas2discourse/fas2discourse{{ env_suffix }}-keytab.kt"
|
||||||
dest: "/root/ocp4/openshift-apps/fas2discourse-operator/fas2discourse-keytab.kt"
|
dest: "/etc/openshift_apps/fas2discourse/fas2discourse{{ env_suffix }}-keytab.kt"
|
||||||
remote_src: True
|
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
# generate the templates for project to be created
|
# generate the templates for project to be created
|
||||||
- name: create the templates
|
- name: copy the templates to the host
|
||||||
template:
|
template:
|
||||||
src: "secret-keytab.yml"
|
src: "secret-keytab.yml"
|
||||||
dest: "/root/ocp4/openshift-apps/fas2discourse-operator/secret-keytab.yml"
|
dest: "/root/ocp4/openshift-apps/fas2discourse-operator/secret-keytab.yml"
|
||||||
|
@ -16,7 +15,7 @@
|
||||||
vars:
|
vars:
|
||||||
fas2discourse_keytab_file:
|
fas2discourse_keytab_file:
|
||||||
"{{ lookup('file',
|
"{{ lookup('file',
|
||||||
'/root/ocp4/openshift-apps/fas2discourse-operator/fas2discourse-keytab.kt')
|
'/etc/openshift_apps/fas2discourse/fas2discourse{{ env_suffix }}-keytab.kt')
|
||||||
}}"
|
}}"
|
||||||
|
|
||||||
# apply created openshift resources
|
# apply created openshift resources
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue