Skip to content

Commit

Permalink
Use lower filter on distribution specific includes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-richter committed Feb 19, 2024
1 parent 30381a0 commit cf8f185
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@
msg: "This is not a debian based system ({{ ansible_os_family }})."
when: ansible_os_family != 'Debian'

- debug:

Check failure on line 7 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

fqcn-builtins Use FQCN for builtin actions.

Check failure on line 7 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

unnamed-task All tasks should be named.
var: ansible_lsb

- debug:

Check failure on line 10 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

fqcn-builtins Use FQCN for builtin actions.

Check failure on line 10 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

unnamed-task All tasks should be named.
var: ansible_distribution

#- debug:

Check warning on line 13 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

yaml missing starting space in comment
# var: ansible_facts

- debug:

Check failure on line 16 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

fqcn-builtins Use FQCN for builtin actions.

Check failure on line 16 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

unnamed-task All tasks should be named.
var: ansible_distribution_release

- name: Include distribution specific variables.

Check failure on line 19 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

fqcn-builtins Use FQCN for builtin actions.
include_vars: "{{ item }}"
with_first_found:
- "lsb_id_{{ ansible_lsb.id }}.yml"
- "distribution_{{ ansible_distribution }}_{{ ansible_lsb.major_release }}.yml"
- "distribution_{{ ansible_distribution }}.yml"
- "lsb_id_{{ ansible_lsb.id | lower }}.yml"
- "distribution_{{ ansible_distribution | lower }}_{{ ansible_lsb.major_release }}.yml"
- "distribution_{{ ansible_distribution | lower }}.yml"
- "default.yml"

- name: Configure proxy.

Check failure on line 27 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint & syntax check

fqcn-builtins Use FQCN for builtin actions.
Expand Down

0 comments on commit cf8f185

Please sign in to comment.