ansible-for-devops
ansible-for-devops copied to clipboard
Chapter 3: check log files - fix grep command
Instead of
$ ansible multi -b -m shell -a "tail /var/log/messages | grep ansible-command | wc - l"
I think it should be
$ ansible multi -b -m shell -a "tail /var/log/messages | grep ansible.legacy.command | wc -l"
Correct, thanks for finding and reporting this!
Thanks for the book. Just started learning Ansible, really enjoying going through the book and doing the exercises.