ansible-for-devops icon indicating copy to clipboard operation
ansible-for-devops copied to clipboard

Chapter 3: check log files - fix grep command

Open cshintov opened this issue 2 years ago • 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"

cshintov avatar Jul 05 '23 19:07 cshintov

Correct, thanks for finding and reporting this!

geerlingguy avatar Jul 07 '23 23:07 geerlingguy

Thanks for the book. Just started learning Ansible, really enjoying going through the book and doing the exercises.

cshintov avatar Jul 08 '23 06:07 cshintov