try roles_path

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2017-07-25 17:54:54 +00:00
parent c1264fe37d
commit c7f1962ad2

View file

@ -4,12 +4,12 @@
run_once: true
- name: Copy template to temporary file ({{tmpfile.path}})
template: src={{ansible}}/roles/openshift-apps/{{app}}/templates/{{template}} dest={{tmpfile.path}}.yml
template: src={{roles_path}}/openshift-apps/{{app}}/templates/{{template}} dest={{tmpfile.path}}.yml
when: template is defined
run_once: true
- name: Copy file to temporary file ({{tmpfile.path}})
copy: src={{ansible}}/roles/openshift-apps/{{app}}/files/{{file}} dest={{tmpfile.path}}.yml
copy: src={{roles_path}}/openshift-apps/{{app}}/files/{{file}} dest={{tmpfile.path}}.yml
when: file is defined
run_once: true