Commit 0becf826 authored by walter's avatar walter

Update task names to be a little more clear and specify only role path tasks to be import

parent fbe3ebf1
Pipeline #8669 failed with stage
- name: Setup mountpoint
import_tasks: "tasks/mountpoint.yml"
- name: Load {{ ansible_distribution }} {{ ansible_distribution_major_version }} variables
- name: Load distribution variables
include_vars: "{{ file | basename }}" # This include_vars module is kind of dumb, so we need to test the full path but only include basename
with_first_found:
- files:
......@@ -13,14 +13,14 @@
loop_control:
loop_var: file
- name: Load {{ ansible_distribution }} {{ ansible_distribution_major_version }} tasks
- name: Load distribution tasks
include_tasks: "{{ file }}"
with_first_found:
- files:
- "tasks/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version }}.yml"
- "tasks/{{ ansible_distribution | lower }}.yml"
- "tasks/{{ ansible_os_family | lower }}.yml"
- "tasks/default.yml"
- "{{ role_path }}/tasks/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version }}.yml"
- "{{ role_path }}/tasks/{{ ansible_distribution | lower }}.yml"
- "{{ role_path }}/tasks/{{ ansible_os_family | lower }}.yml"
- "{{ role_path }}/tasks/default.yml"
skip: true
loop_control:
loop_var: file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment