Heres an Ansible playbook to update and upgrade Linux servers.
Picture: Update six hosts at once.
nano update.yml
---
- hosts: apt-based
remote_user: root
tasks:
- name: update the server
apt:
update_cache: yes
- name: upgrade the server
apt:
upgrade: yes
nano hosts
[apt-based]
homeserver
monitoring
dns01
dokuwiki
wlancontroller
database
ansible-playbook -s update.yml