Learning DevOps
上QQ阅读APP看书,第一时间看更新

Understanding Ansible modules

In the previous section, we learned that, in Ansible playbooks, we use modules. This has made Ansible so popular today that there is a huge list of public modules provided by Ansible natively (+200). The complete list is available here: https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html. 

These modules allow us to perform all of the tasks and operations to be performed on a VM for its configuration and administration without having to write any lines of code or scripts.

Within an enterprise, we can also create our custom modules and publish them in a private registry internally. More information can be found here: https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html.

After seeing the writing of a simple playbook and the use of modules, we will now improve it with roles.