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

Bug 1857179 - Improved ansible fix for banner files. Replace files on… #7228

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

marcusburghardt
Copy link
Member

Description:

This patch fix the Bug 1857179 - https://bugzilla.redhat.com/show_bug.cgi?id=1857179
The files / etc / issue and / etc / motd are replaced by the Ansible playbook, even if they are already correct, impacting the efficiency and integrity of the files once a new inode is created.
This patch improves the playbook using the copy module, which ensures that the file is only updated if the current content is different from the desired content.

Rationale:

This patch achieve the same goal with less code and more efficiency.
The copy module is part of ansible-base and included in all Ansible installations.

@openshift-ci
Copy link

openshift-ci bot commented Jul 10, 2021

Hi @marcusburghardt. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label Jul 10, 2021
@jan-cerny
Copy link
Collaborator

@marcusburghardt Please rebase and remove the "merge" commits from this PR.

@jan-cerny
Copy link
Collaborator

Another good idea is to create a feature branch in your repository instead of using master.

Copy link
Member

@yuumasato yuumasato left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Used by openshift-ci bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants