# ansible\_managed vaule has changed and I can't work out why

**URL:** <https://forum.ansible.com/t/ansible-managed-vaule-has-changed-and-i-cant-work-out-why/35229>\
**Category:** Ansible Project\
**Created:** [May 26, 2021, 2:20pm UTC](https://forum.ansible.com/t/ansible-managed-vaule-has-changed-and-i-cant-work-out-why/35229 "2021-05-26T14:20:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike2](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@mike2](https://forum.ansible.com/u/mike2)\
**Post date:** [May 26, 2021, 2:20pm UTC](https://forum.ansible.com/t/ansible-managed-vaule-has-changed-and-i-cant-work-out-why/35229/1 "2021-05-26T14:20:11Z")

</div>

I’ve been using Ansible as a clone of the git repo, periodically checking out newer stable branches. I’m currently using the stable-2.8 branch but looking to move to a newer version.

The splitting of Ansible in to parts makes me think the best way to use the latest version is start over with a new Ansible install, so I’ve installed Ansible as described at [Installing Ansible — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-in-a-virtual-environment-with-pip)

It seems to work fine, except the value of the {file} part of the ansible\_managed string has changed. With 2.8 {file} is expanded to the full path of the template, as described at [Ansible Documentation — Ansible Community Documentation](https://docs.ansible.com/ansible/2.4/intro_configuration.html#ansible-managed)  
With the latest version of Ansible, it’s just the filename. So ansible\_managed has gone from

# Ansible managed, do not edit directly: /home/mike/blah/roles/core/templates/bash\_prompt.sh.j2 by mike on foo

to

# Ansible managed, do not edit directly: bash\_prompt.sh.j2 by mike on foo

It this expected behaviour?

I didn’t see anything in release notes about this when I looked and I cannot find anything in the documentation for the current version of Ansible which explains what the value of {file} is supposed to be as [Ansible Documentation — Ansible Community Documentation](https://docs.ansible.com/ansible/2.4/intro_configuration.html#ansible-managed) does.

thanks,

mike

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [May 26, 2021, 4:07pm UTC](https://forum.ansible.com/t/ansible-managed-vaule-has-changed-and-i-cant-work-out-why/35229/2 "2021-05-26T16:07:24Z")

</div>

This was a bugfix, since it would cause the template to be 'changed'  
if 2 diff users executed (path would reflect joe's home dir) so we  
preserve the 'relative path' and avoid unneeded updates.
