mirror of
https://github.com/eoli3n/dotfiles
synced 2024-05-27 09:56:07 +02:00
13 lines
463 B
YAML
13 lines
463 B
YAML
---
|
|
- name: Test distribution packages file
|
|
stat: path="{{ role_path }}/tasks/by_os/{{ ansible_distribution|lower }}/main.yml"
|
|
register: distribution_file
|
|
|
|
- name: Include distribution packages
|
|
include_tasks: "{{ role_path }}/tasks/by_os/{{ ansible_distribution|lower }}/main.yml"
|
|
when: distribution_file.stat.exists
|
|
|
|
- name: Include common packages
|
|
include_tasks: "{{ role_path }}/tasks/by_os/common/main.yml"
|
|
when: not distribution_file.stat.exists
|