Ansible code to update all Raspberry Pi

The following code will one by one update your raspberry Pis and then reboot them.



---
- hosts: all
remote_user: pi
serial: 1

tasks:
– name: Update all packages
apt:
upgrade: dist
update_cache: yes
become: yes
register: updated

– name: Reboot Machine if updated
command: shutdown -r +1
async: 1
poll: 0
ignore_errors: true
become: yes
when: updated.changed

– name: Wait for Machine to come back online
local_action: wait_for
host={{ inventory_hostname }}
port=22
state=started
delay=65
when: updated.changed
~

Line Support

The definition tends to vary from company, sector etc :

1st Line Support – Helpdesk (Job titles such as Helpdesk Analyst, First Line Support, Call Logger)
Typically involves resolving calls over the phone in a service desk environment and may escalate to 2nd line support.

2nd Line Support – Desktop Support (Job titles such as IT Technician, PC Engineer, Desktop Support Analyst)
Typically involves onsite desktop support of all workstations, printers, scanners etc

3rd Line Support – Network Support (Job titles such as Network Admin, Network Manager, Server Engineer)

Typically involves onsite support of all servers and dedicated to maintenance of network related issues.