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
2020-08-28 10:41:48 +02:00

43 lines
1.3 KiB
YAML

---
- name: Install requirements to add packages
become: true
apt:
package:
- debian-goodies
- apt-dater-host
- apt-transport-https
state: present
update_cache: yes
cache_valid_time: 43200
when:
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: add eth zurich apt (main)
become: true
apt_repository:
repo: deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
state: present
when:
- not base__pkg_non_free_firmware | bool
- not base__pkg_contrib | bool
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: add eth zurich apt (main non-free)
become: true
apt_repository:
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main non-free
state: present
when:
- base__pkg_non_free_firmware | bool
- not base__pkg_contrib | bool
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: add eth zurich apt (main contrib non-free)
become: true
apt_repository:
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main contrib non-free
state: present
when:
- base__pkg_non_free_firmware | bool
- base__pkg_contrib | bool
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'