1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00
ansible_role_packages/tasks/sources.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2019-07-15 23:09:48 +02:00
---
2020-11-29 14:22:03 +01:00
- name: update repo-cache for Debian/Ubuntu
become: true
ansible.builtin.apt:
update_cache: true
2020-11-29 14:22:03 +01:00
cache_valid_time: 3600
when:
- ansible_pkg_mgr == "apt"
2020-11-29 14:22:03 +01:00
2020-08-28 10:41:48 +02:00
- name: Install requirements to add packages
become: true
ansible.builtin.apt:
2019-07-15 23:47:30 +02:00
package:
- debian-goodies
- apt-dater-host
- apt-transport-https
state: present
2020-08-28 10:41:48 +02:00
- name: add eth zurich apt (main)
2019-07-15 23:09:48 +02:00
become: true
ansible.builtin.apt_repository:
repo: "deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main"
2019-07-15 23:09:48 +02:00
state: present
2020-08-28 14:10:39 +02:00
mode: 0644
2019-07-15 23:09:48 +02:00
when:
2020-08-28 10:41:48 +02:00
- not base__pkg_non_free_firmware | bool
- not base__pkg_contrib | bool
2019-07-15 23:09:48 +02:00
2020-08-28 10:41:48 +02:00
- name: add eth zurich apt (main non-free)
2019-07-20 22:38:49 +02:00
become: true
ansible.builtin.apt_repository:
repo: "deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main non-free"
2019-07-20 22:38:49 +02:00
state: present
2020-08-28 14:10:39 +02:00
mode: 0644
2019-07-20 22:38:49 +02:00
when:
2020-08-28 10:41:48 +02:00
- base__pkg_non_free_firmware | bool
- not base__pkg_contrib | bool
2019-07-29 08:57:58 +02:00
2020-08-28 10:41:48 +02:00
- name: add eth zurich apt (main contrib non-free)
2019-07-29 08:57:58 +02:00
become: true
ansible.builtin.apt_repository:
repo: "deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main contrib non-free"
2019-07-29 08:57:58 +02:00
state: present
2020-08-28 14:10:39 +02:00
mode: 0644
2019-07-29 08:57:58 +02:00
when:
2020-08-28 10:41:48 +02:00
- base__pkg_non_free_firmware | bool
- base__pkg_contrib | bool