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

Fix to avoid spamming syslog with invoked messages #4353

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tanwigeetika1618
Copy link
Contributor

@tanwigeetika1618 tanwigeetika1618 commented Oct 1, 2024

Fix issue #4317

Description

This PR resolves the issue where ansible-basic.py was unnecessarily logging invoked messages to the local syslog, leading to excessive and irrelevant logging during playbook execution.

Changes

  • Modified CustomAnsibleModule in args.py to modify the initialization process.
    -Preventing the unnecessary execution of AnsibleModule.
  • This stops the spamming of syslog with messages such as "ansible-basic.py Invoked with...".

Impact

  • Significantly reduces irrelevant syslog entries.
  • Verified by running ansible-lint and checking logs with journalctl | grep ansible.

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

Successfully merging this pull request may close these issues.

1 participant