We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a369392 commit d3ac6a5Copy full SHA for d3ac6a5
.markdownlint.yaml
@@ -1,3 +1,4 @@
1
+---
2
# Default state for all rules
3
default: true
4
tests/tests_include_vars_from_parent.yml
@@ -1,5 +1,5 @@
---
-- name: Test role variable override
+- name: Test role include variable override
hosts: all
gather_facts: true
5
tasks:
@@ -38,9 +38,18 @@
38
varfiles: "{{ [facts['distribution']] | product(separators) |
39
map('join') | product(versions) | map('join') | list +
40
[facts['distribution'], facts['os_family']] }}"
41
+ register: __varfiles_created
42
43
- name: Import role
44
import_role:
45
name: caller
46
vars:
47
roletoinclude: linux-system-roles.template
48
+
49
+ - name: Cleanup
50
+ file:
51
+ path: "{{ item.dest }}"
52
+ state: absent
53
+ loop: "{{ __varfiles_created.results }}"
54
+ delegate_to: localhost
55
+ when: inventory_hostname == ansible_play_hosts_all[0]
0 commit comments