Basic update upgrade playbook

This commit is contained in:
Ash Leece 2020-07-28 12:48:44 +01:00
parent 18c2b8de4d
commit 04f10ab00a
2 changed files with 15 additions and 0 deletions

2
upgrade/ansible.cfg Normal file
View File

@ -0,0 +1,2 @@
[defaults]
inventory = ./hosts

13
upgrade/playbook.yml Normal file
View File

@ -0,0 +1,13 @@
- name: Upgrade all systems
hosts: all
become: yes
gather_facts: no
tasks:
- name: Updating apt cache
apt:
update_cache: yes
- name: Upgrading all packages
apt:
upgrade: yes