2. Modules
Modules
Sample Commands
Ping all inventory hosts
ansible all -m pingFlush IP table rules on all hosts in the inventory using sudo privileges
ansible -i inventory all -m command -a "iptables -F" --become --ask-become-passList files on web-servers inventory
ansible webservers -m command -a "ls"Extact docs on particular module
ansible-doc setupSample Playbooks
apt_key module
apt_repository module
apt module
shell module
Last updated