What are Ansible modules?

Ansible modules are reusable components designed for specific actions such as managing packages, starting or stopping services, managing users or groups, executing commands, configuring files, and so on. Ansible modules can be categorized into the following two categories:

  • Core modules: Modules that are created and managed by Ansible and available for use by anyone who runs Ansible. An example of this is the apt module.
  • Custom modules: Modules that are created and managed by users or organizations to extend the functionality of Ansible Core modules and to meet their own specific needs.

Get hands-on with 1200+ tech skills courses.