enabled timing; improved rpi patch handling
This commit is contained in:
5
ansible.cfg
Normal file → Executable file
5
ansible.cfg
Normal file → Executable file
@ -1,2 +1,3 @@
|
||||
[defaults]
|
||||
inventory=inventory
|
||||
[defaults]
|
||||
inventory=inventory
|
||||
callback_whitelist = profile_tasks
|
||||
34
inventory
34
inventory
@ -1,18 +1,18 @@
|
||||
|
||||
[rpi:children]
|
||||
rpi_rpios
|
||||
rpi_ubuntu
|
||||
|
||||
[rpi_ubuntu]
|
||||
piprint ansible_host=192.168.2.95
|
||||
|
||||
[rpi_ubuntu:vars]
|
||||
ansible_user=ubuntu
|
||||
|
||||
[rpi_rpios]
|
||||
octopi ansible_host=192.168.2.99
|
||||
pihole ansible_host=192.168.2.20
|
||||
naspi ansible_host=192.168.2.75
|
||||
|
||||
[rpi_rpios:vars]
|
||||
|
||||
[rpi:children]
|
||||
rpi_rpios
|
||||
rpi_ubuntu
|
||||
|
||||
[rpi_ubuntu]
|
||||
piprint ansible_host=192.168.2.95
|
||||
|
||||
[rpi_ubuntu:vars]
|
||||
ansible_user=ubuntu
|
||||
|
||||
[rpi_rpios]
|
||||
octopi ansible_host=192.168.2.99
|
||||
pihole ansible_host=192.168.2.20
|
||||
naspi ansible_host=192.168.2.75
|
||||
|
||||
[rpi_rpios:vars]
|
||||
ansible_user=pi
|
||||
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