Describe how your servers should look (packages, users, config files) in a playbook and apply it to all of them at once. Rebuilding a machine becomes one command.
# inventory.ini [pis] 192.168.1.50 192.168.1.51 # playbook.yml - hosts: pis become: true tasks: - name: Install basics apt: name: [git, htop, ufw] update_cache: true ansible all -i inventory.ini -m ping ansible-playbook -i inventory.ini playbook.yml