2020-08-18 11:57:53 +02:00
|
|
|
# Distribution_Release wird mit {{ansible_distribution_release}} gesetzt
|
|
|
|
# deb http://{{ acng_server }}:{{ acng_server_port }}/security.ubuntu.com/ubuntu {{ansible_distribution_release}}-security multiverse
|
|
|
|
- name: sources.list kopieren
|
|
|
|
become: yes
|
2020-11-21 19:41:19 +01:00
|
|
|
ansible.builtin.template:
|
2020-08-18 11:57:53 +02:00
|
|
|
src: "sources.list"
|
|
|
|
dest: "/etc/apt/sources.list"
|
|
|
|
backup: yes
|
|
|
|
register: copy_src
|
|
|
|
|
|
|
|
|
2020-08-20 09:47:52 +02:00
|
|
|
- name: apt_update # noqa 503 503
|
2020-08-18 11:57:53 +02:00
|
|
|
become: yes
|
2020-11-21 19:41:19 +01:00
|
|
|
ansible.builtin.apt:
|
2020-08-18 11:57:53 +02:00
|
|
|
update_cache: yes
|
|
|
|
when: copy_src.changed
|