Skip to content

Latest commit

 

History

History
executable file
·
20 lines (14 loc) · 368 Bytes

ONELINERS.md

File metadata and controls

executable file
·
20 lines (14 loc) · 368 Bytes

Ansible One-Liners

Try out some of these commands!

Get Ansible variables about this node:

ansible -m setup localhost

Run df on all hosts Ansible knows about:

ansible -a "df -h" all

Restart the cron service (--become allows running root commands):

ansible -m service -a "name=cron state=restarted" all --become