Merge pull request #22 from madonius/bugfix/run_with_ansible_2.8

Bugfix/run with ansible 2.8
This commit is contained in:
Emmanouil Kampitakis 2019-05-24 21:40:49 +02:00 committed by GitHub
commit abcd4631b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,11 @@
mode: "0600"
when:
- not secret_file_stat.stat.exists
# TODO: This below is a dirty hack and should be properly revisited
- name: Retrieve secret
slurp:
src: "{{ secret_file_path }}"
register: "{{ secret.var }}"
register: secret_var
- name: Set secret.var fact
set_fact: { "{{ secret.var }}": "{{ secret_var }}" }