homeserver/roles/mgrote.set_apt_proxy/tasks/main.yml

15 lines
353 B
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
- name: sources.list kopieren
become: yes
ansible.builtin.template:
2020-08-18 11:57:53 +02:00
src: "sources.list"
dest: "/etc/apt/sources.list"
backup: yes
register: copy_src
when: ansible_distribution == 'Ubuntu'
2020-08-18 11:57:53 +02:00
- name: apt_update # noqa 503 503
2020-08-18 11:57:53 +02:00
become: yes
ansible.builtin.apt:
2020-08-18 11:57:53 +02:00
update_cache: yes
when: copy_src.changed