Bertrand Lanson
8137e6aad4
All checks were successful
test / Linting (push) Successful in 8s
test / Molecule tests (default, debian11) (push) Successful in 47s
test / Molecule tests (default, debian12) (push) Successful in 51s
test / Molecule tests (default, ubuntu2004) (push) Successful in 52s
test / Molecule tests (default, ubuntu2204) (push) Successful in 56s
test / Molecule tests (with_custom_repo, debian11) (push) Successful in 55s
test / Molecule tests (with_custom_repo, debian12) (push) Successful in 56s
test / Molecule tests (with_custom_repo, ubuntu2004) (push) Successful in 1m1s
test / Molecule tests (with_custom_repo, ubuntu2204) (push) Successful in 58s
20 lines
630 B
YAML
20 lines
630 B
YAML
---
|
|
# task/main file for manage_repositories
|
|
- name: "Load variables"
|
|
ansible.builtin.include_vars:
|
|
file: "{{ ansible_distribution|lower }}.yml"
|
|
|
|
- name: "Import prerequisites.yml"
|
|
ansible.builtin.include_tasks: prerequisites.yml
|
|
|
|
- name: "Import main repositories for {{ ansible_distribution|lower }}"
|
|
ansible.builtin.include_tasks: "main_repositories.yml"
|
|
when: manage_repositories_enable_default_repo
|
|
|
|
- name: "Import custom_repositories.yml"
|
|
ansible.builtin.include_tasks: custom_repositories.yml
|
|
when: manage_repositories_enable_custom_repo
|
|
|
|
- name: "Update apt caches"
|
|
ansible.builtin.meta: flush_handlers
|