summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/inventory/1/2/3/extra_vars_relative.yml
blob: fa50a5accdc13a2aad2f131d5d6bd59e13226b5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- hosts: localhost
  gather_facts: false
  vars:
    conditions:
      - my is defined
      - my == 'var'
      - "'webservers' in groups"
      - "'web_host.example.com' in groups['webservers']"
  tasks:
    - name: Make sure all is loaded
      assert:
        that: '{{conditions}}'

    - name: Reload inventory, forces extra vars re-eval from diff basedir
      meta: refresh_inventory

    - name: Make sure all is loaded, again
      assert:
        that: '{{conditions}}'