Fix include_role

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-04-16 23:31:16 +00:00
parent 0521332637
commit cb61c9293f

View file

@ -3,8 +3,10 @@
register: tmpfile
run_once: true
- include_role: keytab/service
kt_location: "{{ tmpfile.path }}"
- name: Acquire a keytab
include_role: keytab/service
vars:
kt_location: "{{ tmpfile.path }}"
- name: Call `oc secrets new` on the copied file
shell: oc -n {{app}} secrets new {{secret_name}} {{key}}={{tmpfile.path}}