geerlingguy/ansible-for-devops

Chapter 3: check log files - fix grep command

cshintov opened this issue · 2 comments

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.