Add update-hosts
This commit is contained in:
11
update-hosts
Normal file
11
update-hosts
Normal file
@@ -0,0 +1,11 @@
|
||||
- hosts: all
|
||||
remote_user: ansible
|
||||
vars:
|
||||
ansible_host_key_checking: false
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Update and upgrade apt packages
|
||||
apt:
|
||||
update_cache: yes
|
||||
upgrade: yes
|
||||
Reference in New Issue
Block a user