manage_repositories/tasks/main.yml

21 lines
641 B
YAML
Raw Normal View History

2023-03-09 08:29:28 +00:00
---
# 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