Usage Edit the inventory file and set variables and hosts accordingly to your environment. Run ansible-playbook -u <username> -i inventory mongodb.yml