|
3 | 3 |
|
4 | 4 | - name: Gather required facts
|
5 | 5 | ansible.builtin.setup:
|
6 |
| - gather_subset: '{{ default_gather_subset + (role_gather_subset | default([])) }}' |
| 6 | + gather_subset: "{{ default_gather_subset + (role_gather_subset | default([])) }}" |
7 | 7 | tags:
|
8 | 8 | - s1_gather_facts
|
9 | 9 |
|
|
27 | 27 | - name: Endpoint details
|
28 | 28 | ansible.builtin.debug:
|
29 | 29 | msg:
|
30 |
| - - 'Ansible Distribution: {{ ansible_distribution }}' |
31 |
| - - 'Ansible Distribution Version: {{ ansible_distribution_version }}' |
32 |
| - - 'Ansible Distribution Major Version: {{ ansible_distribution_major_version }}' |
33 |
| - - 'Ansible OS Family: {{ ansible_os_family }}' |
34 |
| - - 'Ansible System: {{ ansible_system }}' |
| 30 | + - "Ansible Distribution: {{ ansible_distribution }}" |
| 31 | + - "Ansible Distribution Version: {{ ansible_distribution_version }}" |
| 32 | + - "Ansible Distribution Major Version: {{ ansible_distribution_major_version }}" |
| 33 | + - "Ansible OS Family: {{ ansible_os_family }}" |
| 34 | + - "Ansible System: {{ ansible_system }}" |
35 | 35 |
|
36 | 36 | - name: Variables will be loaded from the first matching file in vars
|
37 | 37 | ansible.builtin.debug:
|
|
44 | 44 | - "{{ ansible_system | replace(' ', '_') | lower }}.yml"
|
45 | 45 |
|
46 | 46 | - name: Set distribution variables
|
47 |
| - ansible.builtin.include_vars: '{{ loop_vars }}' |
| 47 | + ansible.builtin.include_vars: "{{ loop_vars }}" |
48 | 48 | with_first_found:
|
49 | 49 | - files:
|
50 | 50 | - "{{ ansible_distribution | lower | replace(' ', '_') }}_{{ ansible_distribution_version }}.yml"
|
|
53 | 53 | - "{{ ansible_os_family | replace(' ', '_') | lower }}_{{ ansible_distribution_major_version }}.yml"
|
54 | 54 | - "{{ ansible_os_family | replace(' ', '_') | lower }}.yml"
|
55 | 55 | - "{{ ansible_system | replace(' ', '_') | lower }}.yml"
|
56 |
| - skip: yes |
| 56 | + skip: true |
57 | 57 | paths:
|
58 |
| - - 'vars' |
| 58 | + - vars |
59 | 59 | loop_control:
|
60 | 60 | loop_var: loop_vars
|
61 |
| - label: '{{ loop_vars | basename }}' |
| 61 | + label: "{{ loop_vars | basename }}" |
62 | 62 | tags:
|
63 | 63 | - always
|
0 commit comments