13 lines
259 B
YAML
13 lines
259 B
YAML
---
|
|
|
|
- hosts: all
|
|
vars:
|
|
ansible_host_key_checking: false ##If you get an error about hosts not trusted
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Update all packages to their latest version
|
|
ansible.builtin.apt:
|
|
name: "*"
|
|
state: latest
|