You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
336 B
YAML
16 lines
336 B
YAML
---
|
|
- name: change mirror repo
|
|
ansible.builtin.template:
|
|
src: templates/sources.list.j2
|
|
dest: /etc/apt/sources.list
|
|
|
|
- name: update host
|
|
ansible.builtin.apt:
|
|
update_cache: yes
|
|
upgrade: dist
|
|
register: host_upgraded
|
|
|
|
- name: reboot host
|
|
ansible.builtin.reboot:
|
|
when: host_upgraded.changed and debian_repo_reboot
|