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
|
|
|
|
when: ansible_distribution == 'Debian'
|
|
|
|
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
- add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- ansible_distribution_release == "wheezy" or ansible_distribution_release == "buster"
|
|
|
|
|
2019-07-15 23:47:30 +02:00
|
|
|
- name: iremove eth zurich apt
|
|
|
|
become: true
|
|
|
|
apt_repository:
|
|
|
|
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
|
|
|
|
state: absent
|
|
|
|
when:
|
|
|
|
- not add_ethz | bool
|
|
|
|
- ansible_distribution == 'Debian'
|