Debian Codegraph @

test/integration/targets/secret_masking_lookup/lookup.yml

raw
1 ---
2 - name: secret masking lookup scenarios
3 hosts: testhost
4 gather_facts: false
5 tasks:
6 - name: lookups resolve to the known values in-playbook
7 assert:
8 that:
9 - lookup('password', playbook_dir ~ '/files/existing_password') == 'Passwordlookup0004Secret'
10 - lookup('unvault', unvault_target_file) == 'Unvaultlookup0005Secret'
11 quiet: true
12
13 - name: password lookup registers the returned password
14 debug:
15 msg: "MARKER password_lookup: Passwordlookup0004Secret"
16
17 - name: unvault lookup registers the decrypted content
18 debug:
19 msg: "MARKER unvault_lookup: Unvaultlookup0005Secret"