Skip to content

Conversation

@ELLIOTTCABLE
Copy link
Contributor

This change to the shell snippet simply:

  1. intentionally leaves a copy of the old version laying around (which subsequent Ansible invocations can check for, to see if this has already been executed); and
  2. uses the output from cmp to determine whether any change was actually made to the file.

This gets rid of the 'changed: 1 task' notification when re-running the playbook on a host that's finished setting itself up.

Copy link
Owner

@moltenbit moltenbit left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@moltenbit moltenbit merged commit 735d0a7 into moltenbit:main Dec 4, 2025
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