Skip to content

update facts when SELinux status changed #53

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

Merged
merged 1 commit into from
Mar 26, 2021
Merged

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Mar 26, 2021

cloudalchemy.node_exporter/tasks/configure.yml has a task:

- name: Allow node_exporter port in SELinux on RedHat OS family
<snip>
  when:
    - ansible_version.full is version_compare('2.4', '>=')
    - ansible_selinux.status == "enabled"

Without this PR, if selinux is changed from enabled to disabled by bootstrap.yml, this change isn't reflected in the facts, and then the task fails with an error that selinux is disabled.

@sjpb sjpb requested a review from jovial March 26, 2021 15:52
@sjpb sjpb merged commit a1cd63d into main Mar 26, 2021
@sjpb sjpb deleted the fix/nodeexporter_selinux branch March 26, 2021 16:31
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