- Install Ansible Collections
ansible-galaxy collection install -r collections/requirements.yml- Read in service account passwords
read -s user1_pass- Read in service account passwords
read -s user2_pass- Add target hosts to a local inventory file
echo host1\nhost2 > inventory- Run the playbook
ansible-playbook main.yml -i inventory -e "user1_pass='${user1_pass}' user2_pass='${user2_pass}'"