Debian Codegraph @

test/integration/targets/connection_ssh/verify_config.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 vars:
4 ssh_configs:
5 - ssh_common_args
6 - ssh_extra_args
7 - sftp_extra_args
8 - scp_extra_args
9 tasks:
10 - debug:
11 msg: '{{item ~ ": " ~ lookup("config", item, plugin_type="connection", plugin_name="ssh")}}'
12 verbosity: 3
13 loop: '{{ssh_configs}}'
14 tags: [ configfile ]
15
16 - name: check config from file
17 assert:
18 that:
19 - 'lookup("config", item, plugin_type="connection", plugin_name="ssh") == "fromconfig"'
20 loop: '{{ssh_configs}}'
21 tags: [ configfile ]