2019-07-15 23:09:48 +02:00
|
|
|
---
|
2019-07-15 23:47:30 +02:00
|
|
|
- name: Install some common Debian specific packages
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
package:
|
|
|
|
- debian-goodies
|
|
|
|
- apt-dater-host
|
|
|
|
- apt-transport-https
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
cache_valid_time: 43200
|
2019-07-17 14:02:01 +02:00
|
|
|
when:
|
|
|
|
- ansible_distribution == 'Debian'
|
2019-07-17 22:59:12 +02:00
|
|
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
2019-07-15 23:47:30 +02:00
|
|
|
|
|
|
|
- name: add eth zurich apt
|
2019-07-15 23:09:48 +02:00
|
|
|
become: true
|
|
|
|
apt_repository:
|
|
|
|
repo: deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
|
|
|
|
state: present
|
|
|
|
when:
|
2019-07-20 22:38:49 +02:00
|
|
|
- not base_pkg_non_free_firmware | bool
|
2019-07-29 08:57:58 +02:00
|
|
|
- not base_pkg_contrib | bool
|
2019-07-15 23:09:48 +02:00
|
|
|
- add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|
2019-07-17 22:59:12 +02:00
|
|
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
2019-07-15 23:09:48 +02:00
|
|
|
|
2019-07-17 14:02:01 +02:00
|
|
|
- name: remove eth zurich apt
|
2019-07-15 23:47:30 +02:00
|
|
|
become: true
|
|
|
|
apt_repository:
|
2019-07-20 22:38:49 +02:00
|
|
|
repo: deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
|
|
|
|
state: absent
|
|
|
|
when:
|
|
|
|
- not base_pkg_non_free_firmware | bool
|
2019-07-29 08:57:58 +02:00
|
|
|
- not base_pkg_contrib | bool
|
2019-07-20 22:38:49 +02:00
|
|
|
- not add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
|
|
|
|
|
|
|
- name: add eth zurich apt
|
|
|
|
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
|
2019-07-29 08:57:58 +02:00
|
|
|
- not base_pkg_contrib | bool
|
2019-07-20 22:38:49 +02:00
|
|
|
- add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
|
|
|
|
|
|
|
- name: remove eth zurich apt
|
|
|
|
become: true
|
|
|
|
apt_repository:
|
|
|
|
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main non-free
|
2019-07-15 23:47:30 +02:00
|
|
|
state: absent
|
|
|
|
when:
|
2019-07-20 22:38:49 +02:00
|
|
|
- base_pkg_non_free_firmware | bool
|
2019-07-29 08:57:58 +02:00
|
|
|
- not base_pkg_contrib | bool
|
|
|
|
- not add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
|
|
|
|
|
|
|
- name: add eth zurich apt + 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
|
|
|
|
- add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
|
|
|
|
|
|
|
- name: remove eth zurich apt + contrib + non-free
|
|
|
|
become: true
|
|
|
|
apt_repository:
|
|
|
|
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main contrib non-free
|
|
|
|
state: absent
|
|
|
|
when:
|
|
|
|
- base_pkg_non_free_firmware | bool
|
|
|
|
- base_pkg_contrib | bool
|
2019-07-15 23:47:30 +02:00
|
|
|
- not add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|
2019-07-17 22:59:12 +02:00
|
|
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|