update_hosts.yml with motd, login page and rsyslog config

This commit is contained in:
2021-12-22 15:12:51 -05:00
parent ebae058a0b
commit 14f8936790
16 changed files with 589 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
---
# update packages to latest
- name: run apt updates
apt:
upgrade: dist
update_cache: yes
cache_valid_time: 3600
when: ansible_os_family == "Debian"
- name: check for reboot required
stat:
path: /var/run/reboot-required
register: reboot_required
- name: reboot after updates
reboot:
when: reboot_required.stat.exists