homeserver/roles/mgrote.set_apt_sources/tasks/main.yml
Quotengrote 15d783de86
FQCN eingeführt (#70)
* template --> ansible.builtin.template

* apt --> ansible.builtin.apt

* lineinfile --> ansible.builtin.lineinfile

* file --> ansible.builtin.file

* blockinfile --> ansible.builtin.blockinfile

* cron --> ansible.builtin.cron

* timezone --> ansible.builtin.timezone

* get_url --> ansible.builtin.get_url

* group --> ansible.builtin.group

* user --> ansible.builtin.user

* unarchive --> ansible.builtin.unarchive

* service --> ansible.builtin.service

* apache2_module --> ansible.builtin.apache2_module

* package --> ansible.builtin.apt

* template --> ansible.builtin.template 2
2020-11-21 19:41:19 +01:00

16 lines
518 B
YAML

# 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
ansible.builtin.template:
src: "sources.list"
dest: "/etc/apt/sources.list"
backup: yes
register: copy_src
- name: apt_update # noqa 503 503
become: yes
ansible.builtin.apt:
update_cache: yes
when: copy_src.changed