Initial commit

This commit is contained in:
2019-06-04 03:20:59 +02:00
commit 06523efab1
8 changed files with 172 additions and 0 deletions

17
apt-upgrade.yml Normal file
View File

@@ -0,0 +1,17 @@
---
- hosts: all
tasks:
- name: updates a server
apt: update_cache=yes
- name: upgrade a server
apt: upgrade=dist
# Reboot if required
#
# - name: Check if a reboot is required
# register: file
# stat: path=/var/run/reboot-required get_md5=no
# - name: Reboot the server
# command: /sbin/reboot
# when: file.stat.exists == true