Summary
In this chapter, you learnt about how to run custom commands and scripts using Ansible's command modules, that is, raw, command, shell, and script. You also learnt how to control the idempotence of command modules using the creates
and removes
flags. We started using registered variables to store the result of a task that can then be used later to conditionally run other tasks or embed output in a template. Finally, we created a role to install and configure a WordPress application.
In the next chapter, we are going to start learning about how to control execution flow using conditionals, how to apply roles selectively, and also how to use conditional control structures in templates.