homeserver/roles/mgrote.set_apt_proxy/tasks/main.yml
mg ec7d58377e Bugfix: mg/ansible#16 (#17)
Bugfix: mg/ansible#16

Co-authored-by: Michael Grote <38253905+quotengrote@users.noreply.github.com>
Reviewed-on: mg/ansible#17
Co-Authored-By: mg <michael.grote@posteo.de>
Co-Committed-By: mg <michael.grote@posteo.de>
2020-12-30 12:16:06 +01:00

14 lines
353 B
YAML

- name: sources.list kopieren
become: yes
ansible.builtin.template:
src: "sources.list"
dest: "/etc/apt/sources.list"
backup: yes
register: copy_src
when: ansible_distribution == 'Ubuntu'
- name: apt_update # noqa 503 503
become: yes
ansible.builtin.apt:
update_cache: yes
when: copy_src.changed