mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cdf6e3e4bf
- get_real_file will decrypt vault encrypted files and return a path to a temporary file. - cleanup_real_file will remove a temporary file created previously with get_real_file
13 lines
242 B
YAML
13 lines
242 B
YAML
- hosts: testhost
|
|
vars_files:
|
|
- vars/test_var_encrypted.yml
|
|
|
|
gather_facts: False
|
|
|
|
tasks:
|
|
- assert:
|
|
that:
|
|
- 'secret_var == "secret"'
|
|
|
|
- copy: src=vault-secret.txt dest={{output_dir}}/secret.txt
|
|
|