1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00
ansible_role_base/tasks/sources.yml
2019-07-20 22:38:49 +02:00

58 lines
1.8 KiB
YAML

---
- 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'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: add eth zurich apt
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
- 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 https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
state: absent
when:
- not base_pkg_non_free_firmware | bool
- 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
- 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
state: absent
when:
- base_pkg_non_free_firmware | bool
- not add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'