Preparation
Before you run any Ansible playbook manually connect to your server with ssh to answer the authenticity prompt and save the server to known_hosts. You need to know the default user and should have already configured setup_ansible_user
in your host_vars file for each server. Using the normal default user of root and our example server:
ssh root@2001:DB8::93ee:f03d:fe06::1
# replace with your server's IP address
While you’re logged in check for and install updates, then reboot the server:
sudo apt update
sudo apt upgrade
sudo shutdown -r now
Now you’re ready to run the setup playbook.