TIPS

Ansible Tips

#ansible

Ansible Tips

Print to stout and log at same time…​

ansible-playbook -i hosts playbook.yml -vvv | tee -a output.log

Run a single command on all hosts…​ this one cleans up your journals…​ and runs 10 at a time

ansible all -a 'journalctl --vacuum-time=2d' -f 10