Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 3: check log files - fix tail command #597

Open
mvopalka opened this issue Oct 27, 2024 · 0 comments
Open

Chapter 3: check log files - fix tail command #597

mvopalka opened this issue Oct 27, 2024 · 0 comments

Comments

@mvopalka
Copy link

mvopalka commented Oct 27, 2024

In chapter 3 at the section Check log files the command for printing how many Ansible commands have been executed on each server uses tail instead of cat.

I think the line should be
ansible multi -b -m shell -a "cat /var/log/messages | \ grep ansible-command | wc -l"
instead of
ansible multi -b -m shell -a "tail /var/log/messages | \ grep ansible-command | wc -l"
as description says

This command shows how many ansible commands have been run on each server
(the numbers you get may be different).

and the tail command as I now only print the last 5 lines by default.

The line could also be different according to issue #550

Thank you for awesome book Jeff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant