2. Modules
Modules
Modules are executable plugins that get the job done
They take key value as arguments
They can be invoked using command line or included in ansible playbook
Sample Commands
Ping all inventory hosts
Flush IP table rules on all hosts in the inventory using sudo privileges
List files on web-servers inventory
Extact docs on particular module
Sample Playbooks
apt_key module
apt_repository module
apt module
shell module
Last updated