Some sample playbooks for Ansible Course
ansible hostname -m modulename -a 'arguments'
ansible-playbook *playbookname.yml* --syntax-check
ansible-playbook *playbookname.yml*
ansible-doc *modulename*
This introduces you to the world of Ansible playbooks. Here you will find playbooks for basic tasks.
This chapter contains playbooks with multiple plays inside of them. It illustrates how to use playbooks effectively.
This chapter focuses on making our code reusable in different situations by using the concepts of variables.
In this chapter, we see playbooks where loops are being used to minimize duplication of tasks.
Ansible conditions teach us how to adapt our playbooks to different conditions such as only running plays when certain conditions are true.
This chapter shows how to use Ansible Handlers to only perform certain tasks when needed.
Task Failure or a failure in our Playbooks will happen. This chapter shows us how to handle errors in our Playbooks.
Creating custom files depending upon the environment is important, playbooks in this chapter shows us how to do so using the Ansible Templating Engine known as Jinja2.