bradleyd / devops_for_the_desperate

The companion code for the book DevOps for the Desperate
119 stars 65 forks source link

Understanding ansible-playbook section #37

Open jonbry opened 1 month ago

jonbry commented 1 month ago

I don't have an issue with any of the code in the book, but I was wondering if someone could explain the ansible-playbook code in a bit more detail (in Basic Ansible Commands):

ansible-playbook -l dockerhosts aws-cloudwatch.yml

What is dockerhosts and aws-cloudwatch.yml and where do they exist? I scoured the web, but none of the results looked quite right.

Also, is the inventory file mentioned in the book called vagrant_ansible_inventory that's located in /devops_for_the_desperate/vagrant/.vagrant/provisioners/ansible/inventory?

Thank you!

jonbry commented 1 month ago

What is dockerhosts and aws-cloudwatch.yml and where do they exist? I scoured the web, but none of the results looked quite right.

Also, is the inventory file mentioned in the book called vagrant_ansible_inventory that's located in /devops_for_the_desperate/vagrant/.vagrant/provisioners/ansible/inventory?