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 2.2.14 evaluate dnsmasq instead of postfix #69

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

lucab85
Copy link
Contributor

@lucab85 lucab85 commented Jul 6, 2023

Corrected rule 2.2.14 Ensure dnsmasq is not installed (Automated) on an RHEL 9 machine without postfix.

Overall Review of Changes:
Fixed 2.2.14 to evaluate dnsmasq instead of postfix.

Issue Fixes:
Previous code evaluate postfix and triggers postfix restart handler when is not needed.

RUNNING HANDLER [RHEL9-CIS : Restart postfix] ************************************************
fatal: [rhel.example.com]: FAILED! => {"changed": false, "msg": "Could not find the requested service postfix: host"}

Enhancements:
Running the code on a machine without "postfix" installed didn't end with the "Restart postfix" handler error.

How has this been tested?:
Tested locally on freshly installed RHEL9 with rhel9cis_dnsmasq_server = false and rhel9cis_is_mail_server = false .

Corrected rule 2.2.14 Ensure dnsmasq is not installed (Automated).

Signed-off-by: Luca Berton <[email protected]>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on opening your first pull request and thank you for taking the time to help improve Ansible-Lockdown!
Please join in the conversation happening on the Discord Server as well.

@uk-bolly uk-bolly self-assigned this Jul 6, 2023
@uk-bolly uk-bolly merged commit 8921431 into ansible-lockdown:devel Jul 6, 2023
@uk-bolly
Copy link
Member

uk-bolly commented Jul 6, 2023

Great catch, thanks you for taking the time to find the issue and raise the PR.

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

Successfully merging this pull request may close these issues.

2 participants