Debian Codegraph @

test/integration/targets/unarchive/auth_mask.yml

raw
1 - hosts: testhost
2 gather_facts: false
3 tasks:
4 - name: unarchive auth fail a tar from an URL download from remote
5 unarchive: src="http://secretuser:secretpassword@localhost/nothere" dest="/tmp/" remote_src=no
6 ignore_errors: true
7 register: auth1
8
9 - name: unarchive auth fail a tar from an URL download from controller
10 unarchive: src="http://secretuser:secretpassword@localhost/nothere" dest="/tmp/" remote_src=yes
11 ignore_errors: true
12 register: auth2
13
14 - name: ensure not disclosure
15 assert:
16 that:
17 - "'secret' not in auth1|to_json"
18 - "'secret' not in auth2|to_json"