Hands-on Activity 5 Implement Ansible Roles in Playbooks
- Github URL: Github Link
Conclusion: In this activity, I conclude that I have been able to fulfill the objectives that are given. The first objective is to use when command in the playbook for different OS distributions.I have been able to accomplish the first objective by using when command in my own playbook. I used the when command in order to control the flow of execution in my playbook. It is also used for certain conditions such as running the task in Debian hosts only or running it only on CentOS. The second objective is to apply refactoring techniques in cleaning up the playbook codes. By applying refactoring, I have been able to improve the quality of my code, make it easier to understand and maintain, and reduce the amount of time and effort required for development.