Skip to content

Conversation

@dirn
Copy link
Contributor

@dirn dirn commented Mar 1, 2016

When looking at configuration files on a host, it's often helpful to
know when the file was generated by a configuration management tool.
Ansible provides this through the ansible_managed context variable.

When looking at configuration files on a host, it's often helpful to
know when the file was generated by a configuration management tool.
Ansible provides this through the `ansible_managed` context variable.
@sebalix
Copy link
Contributor

sebalix commented Mar 1, 2016

Indeed. For those who do not want changed notifications to happen and see their servers restarting every time the role is run even if there is no change (because of the date in ansible_managed), you can set your own value in the configuration file:

ansible_managed = Ansible managed, do not edit directly: {file} by {uid} on {host}

Bug report related to ansible_managed : ansible/ansible#5317

@clonedagain
Copy link
Contributor

👍

@jesselang
Copy link
Contributor

This looks great! Can we get this merged?

@otakup0pe otakup0pe merged commit c2050e7 into ANXS:master Aug 11, 2016
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.

5 participants