15 lines
No EOL
310 B
YAML
15 lines
No EOL
310 B
YAML
---
|
|
- hosts: "{{ target_hosts }}"
|
|
become: true
|
|
tasks:
|
|
- name: Update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
|
|
- name: Upgrade all packages
|
|
ansible.builtin.apt:
|
|
upgrade: dist
|
|
autoremove: true
|
|
|
|
- name: Reboot machine
|
|
ansible.builtin.reboot: |