Skip to content

Commit

Permalink
Drop "ansible" from variable names
Browse files Browse the repository at this point in the history
Keep ansible variable namespace for upstream only.
  • Loading branch information
maage authored and Jakuje committed Aug 29, 2023
1 parent 729a1b0 commit 29efda3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
- name: Set OS dependent variables
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
vars:
ansible_distribution_lts_offset: >-
_distribution_lts_offset: >-
{{
ansible_distribution_major_version | int % 2
if ansible_distribution == "Ubuntu"
else 0
}}
ansible_distribution_lts_version: >-
_distribution_lts_version: >-
{{
ansible_distribution_major_version | int -
ansible_distribution_lts_offset | int
_distribution_lts_offset | int
if ansible_distribution == "Ubuntu"
else ansible_distribution_version
}}
params:
files:
- "{{ ansible_distribution }}_{{ ansible_distribution_lts_version }}.yml"
- "{{ ansible_distribution }}_{{ _distribution_lts_version }}.yml"
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
Expand Down

0 comments on commit 29efda3

Please sign in to comment.