enabled timing; improved rpi patch handling
This commit is contained in:
14
playbooks/disabled_unattended-upgrades.yml
Normal file → Executable file
14
playbooks/disabled_unattended-upgrades.yml
Normal file → Executable file
@ -1,8 +1,8 @@
|
||||
- hosts: rpi
|
||||
become: yes
|
||||
tasks:
|
||||
- name: remove unattended-upgrades
|
||||
apt:
|
||||
package: unattended-upgrades
|
||||
state: absent
|
||||
- hosts: rpi
|
||||
become: yes
|
||||
tasks:
|
||||
- name: remove unattended-upgrades
|
||||
apt:
|
||||
package: unattended-upgrades
|
||||
state: absent
|
||||
autoremove: yes
|
||||
29
playbooks/rpi_patches.yml
Normal file → Executable file
29
playbooks/rpi_patches.yml
Normal file → Executable file
@ -1,10 +1,19 @@
|
||||
- hosts: rpi
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Apt Update
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Apt Upgrade
|
||||
apt:
|
||||
upgrade: safe
|
||||
- hosts: rpi
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Apt Update
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Apt Upgrade
|
||||
apt:
|
||||
upgrade: safe
|
||||
|
||||
- name: Check if reboot required
|
||||
stat:
|
||||
path: /var/run/reboot-required
|
||||
register: reboot_required_file
|
||||
|
||||
- name: Reboot if required
|
||||
reboot:
|
||||
when: reboot_required_file.stat.exists == true
|
||||
Reference in New Issue
Block a user