Skip to content

Conversation

fgrsnau
Copy link

@fgrsnau fgrsnau commented Nov 11, 2017

Adds ### THIS FILE IS MANAGED BY ANSIBLE -- DO NOT EDIT! ### to all of the files.

Sets /etc/mailname to mta_override_hostname or inventory_hostname (if the former is not specified; the same logic is used in posfix's main.cf).

@lukasjuhrich
Copy link

Happy birthday, dear pull request! :-) 🎂

@@ -1,3 +1,5 @@
### THIS FILE IS MANAGED BY ANSIBLE -- DO NOT EDIT! ###

Choose a reason for hiding this comment

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

Isn't that already done in our ansible repos? I remember the header looking like {{ ansible_managed }}.

Choose a reason for hiding this comment

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

Or does that only cover ansible.git, but not the ansible-mta submodule?

Copy link
Author

Choose a reason for hiding this comment

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

Usually, I would also vote for {{ ansible_managed }}. There are two reason for not using it:

  1. It only works in templates and not in static files.
  2. All other roles in our ansible repo use this static line. I just copied it. :)

@mabezi mabezi force-pushed the master branch 2 times, most recently from 20c2b4c to 3ca8914 Compare July 3, 2025 23:05
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