summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/connection_ssh/verify_config.yml
blob: 0bf79586826a3f3d0fefe068cacd69a93a6cc64a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- hosts: localhost
  gather_facts: false
  vars:
    ssh_configs:
      - ssh_common_args
      - ssh_extra_args
      - sftp_extra_args
      - scp_extra_args
  tasks:
    - debug:
        msg: '{{item ~ ": " ~ lookup("config", item, plugin_type="connection", plugin_name="ssh")}}'
        verbosity: 3
      loop: '{{ssh_configs}}'
      tags: [ configfile ]

    - name: check config from file
      assert:
        that:
          - 'lookup("config", item, plugin_type="connection", plugin_name="ssh") == "fromconfig"'
      loop: '{{ssh_configs}}'
      tags: [ configfile ]