12.1 Ansible Module Development - Basics

In this lab we are going to learn how Ansible uses modules and where to find information about developing a custom module.

Task 1

  • In which language has a module to be written?
  • Point your webbrowser to the official documentation about developing modules.
  • Point your webbrowser to the official documentation about developing modules best practices.
  • Point your webbrowser to the official documentation about developing collections.
  • Point your webbrowser to the official documentation about debugging your module.
  • Which environment variable lets you keep the remote module files after executing the module (instead of deleting it)?
Solution Task 1

Task 2

Solution Task 2
1
2
mkdir /home/ansible/techlab/library/
touch /home/ansible/techlab/library/my_module.py

All done?