cd ~/apache-basic-playbook
Congratulations! You just wrote a playbook that incorporates some key Ansible concepts that you use in most, if not all, of your future playbooks. Before you get too excited though, we should probably make sure it actually runs. So, let’s do that now.
Make sure you are in the right directory and create a host file.
cd ~/apache-basic-playbook
Since you already did the work of creating a host file in Lession 1.0, feel free to re-use it. |
Run your playbook, using the following command.
ansible-playbook -i ../hosts site.yml --private-key=~/.ssh/example-tower
If successful, you should see standard output that looks very similar to the following. If not, just let us know. We’ll help get things fixed up.
|
|
|
|
Domain: | ||
Workshop Name: | ||
Region: | ||
User ID: |