2021-02-05 10:51:39 +01:00
|
|
|
---
|
2023-07-05 15:30:24 +02:00
|
|
|
- name: include vars (ubuntu) (determined by "ansible_distribution")
|
|
|
|
ansible.builtin.include_vars:
|
|
|
|
file: ubuntu.yaml
|
|
|
|
when:
|
|
|
|
- ansible_distribution == 'Ubuntu'
|
2020-08-18 11:57:53 +02:00
|
|
|
|
2023-07-05 15:30:24 +02:00
|
|
|
- name: include vars (mint) (determined by "ansible_distribution")
|
|
|
|
ansible.builtin.include_vars:
|
|
|
|
file: mint.yaml
|
|
|
|
when:
|
|
|
|
- ansible_distribution == 'Linux Mint'
|
2021-06-14 08:34:02 +02:00
|
|
|
|
2023-07-05 15:30:24 +02:00
|
|
|
- name: include vars (pve) (determined by group)
|
|
|
|
ansible.builtin.include_vars:
|
|
|
|
file: pve.yaml
|
|
|
|
when:
|
|
|
|
- "'pve' in group_names"
|
2022-07-22 13:12:23 +02:00
|
|
|
|
2023-07-05 15:30:24 +02:00
|
|
|
- name: include vars (pbs) (determined by group)
|
|
|
|
ansible.builtin.include_vars:
|
|
|
|
file: pbs.yaml
|
|
|
|
when:
|
|
|
|
- "'pbs' in group_names"
|
2023-06-23 16:04:19 +02:00
|
|
|
|
2023-07-05 15:30:24 +02:00
|
|
|
- name: ensure /etc/apt/sources.list.d/ is absent
|
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /etc/apt/sources.list.d/
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: include preparation tasks (pbs) (determined by group)
|
|
|
|
ansible.builtin.include_tasks: pbs.yml
|
|
|
|
when:
|
|
|
|
- "'pbs' in group_names"
|
|
|
|
|
|
|
|
- name: include preparation tasks (pve) (determined by group)
|
|
|
|
ansible.builtin.include_tasks: pve.yml
|
|
|
|
when:
|
|
|
|
- "'pve' in group_names"
|
|
|
|
|
|
|
|
- name: template sources.list
|
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: sources.j2
|
|
|
|
dest: "{{ repo_sources_file }}"
|
2023-10-25 22:26:17 +02:00
|
|
|
mode: "0644"
|
|
|
|
owner: root
|
|
|
|
group: root
|
2023-07-05 15:30:24 +02:00
|
|
|
notify: update package lists
|
|
|
|
when:
|
|
|
|
- repos is defined
|