if possible, search for the sudo password in a password file and use that when running the playbook? not sure if this is safe but would be nice because it'd save the hassle of having to type it each time you want to run the playbook
automatically append the different flags to the Ansible command as we are going through the above checks
turn it into an interactive script instead of just a few commands
search for the Ansible Vault password in a password file (if not found, will print a warning to the terminal); see this snippet as an example: https://github.com/apatel762/home-infra/blob/a5a8ca5433b9b7c5bc529a8e8280077757faa77d/.archive/ansible/run.sh#L26-L46
if possible, search for the
sudo
password in a password file and use that when running the playbook? not sure if this is safe but would be nice because it'd save the hassle of having to type it each time you want to run the playbookautomatically append the different flags to the Ansible command as we are going through the above checks
use
set -x
to log the command before running it