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_ethz.yml

31 lines
766 B
YAML
Raw Normal View History

2019-07-15 23:09:48 +02:00
---
- name: Update repo-cache for Debian/Ubuntu
2020-11-29 14:22:03 +01:00
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
2021-08-02 12:18:04 +02:00
- name: Install requirements to add packages via https
2020-08-28 10:41:48 +02:00
become: true
ansible.builtin.apt:
2019-07-15 23:47:30 +02:00
package:
- debian-goodies
- apt-dater-host
- apt-transport-https
state: present
- name: Add ETH zurich apt for Debian
2019-07-15 23:09:48 +02:00
become: true
2021-08-02 12:18:04 +02:00
ansible.builtin.template:
src: "templates/apt.sources.list.j2"
dest: '/etc/apt/sources.list.d/debian_ethz_ch_debian.list'
2020-08-28 14:10:39 +02:00
mode: 0644
2021-08-02 12:18:04 +02:00
group: root
owner: root
notify: Run apt update
2019-07-15 23:09:48 +02:00
- name: Force all notified handlers to run at this point, not waiting for normal sync points
2021-08-02 12:18:04 +02:00
ansible.builtin.meta: flush_handlers