blob: fee163faf135c50f6dac88e45208f7e7e8afe990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
---
- name: Test role-prefix
hosts: localhost
connection: local
roles:
- role_vars_prefix_detection
- role: role_vars_prefix_detection
var1: val1
- role: role_vars_prefix_detection
var1: val1
become: true
vars:
var2: val2
- role: role_vars_prefix_detection
become: true
environment:
FOO: /bar/barr
role_vars_prefix_detection_var1: val1
- role: role_vars_prefix_detection
vars:
var1: val1
- role: role_vars_prefix_detection
become: true
environment:
BAR: /baz
vars:
var1: val1
- role: role_vars_prefix_detection
become: true
environment:
BAR: /baz
vars:
role_vars_prefix_detection_var1: val1
tasks:
- name: Include1
ansible.builtin.include_role:
name: role_vars_prefix_detection
vars:
var1: val1
- name: Include2
ansible.builtin.include_role:
name: role_vars_prefix_detection
vars:
role_vars_prefix_detection_var1: val1
_role_vars_prefix_detection_var2: val2
__role_vars_prefix_detection_var3: val3
|