21 lines
641 B
YAML
21 lines
641 B
YAML
|
---
|
||
|
# task/main file for manage_repositories
|
||
|
- name: "Load variables"
|
||
|
ansible.builtin.include_vars:
|
||
|
file: "{{ ansible_distribution|lower }}.yml"
|
||
|
|
||
|
- name: "Import main repositories"
|
||
|
when: manage_repositories_enable_default_repo
|
||
|
block:
|
||
|
- name: "Import ubuntu.yml"
|
||
|
ansible.builtin.include_tasks: ubuntu.yml
|
||
|
when: ansible_distribution == 'Ubuntu'
|
||
|
|
||
|
- name: "Import debian.yml"
|
||
|
ansible.builtin.include_tasks: debian.yml
|
||
|
when: ansible_distribution == 'Debian'
|
||
|
|
||
|
- name: "Import custom_repositories.yml"
|
||
|
ansible.builtin.include_tasks: custom_repositories.yml
|
||
|
when: manage_repositories_enable_custom_repo
|