9 lines
306 B
YAML
9 lines
306 B
YAML
- name: cleanup
|
|
include_tasks: "{{ distro }}"
|
|
loop:
|
|
- "{{ role_path }}/tasks/{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_major_version'] }}.yml"
|
|
- "{{ role_path }}/tasks/{{ ansible_facts['distribution'] }}.yml"
|
|
when: distro is file
|
|
loop_control:
|
|
loop_var: distro
|