Chapter 3: check log files - fix grep command
cshintov opened this issue · 2 comments
cshintov commented
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"
geerlingguy commented
Correct, thanks for finding and reporting this!
cshintov commented
Thanks for the book. Just started learning Ansible, really enjoying going through the book and doing the exercises.