# "attr: i" failing on cent/rhel/oel6 -- why?

**URL:** <https://forum.ansible.com/t/attr-i-failing-on-cent-rhel-oel6-why/25409>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [September 5, 2017, 3:47pm UTC](https://forum.ansible.com/t/attr-i-failing-on-cent-rhel-oel6-why/25409 "2017-09-05T15:47:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [September 5, 2017, 3:47pm UTC](https://forum.ansible.com/t/attr-i-failing-on-cent-rhel-oel6-why/25409/1 "2017-09-05T15:47:46Z")

</div>

I am setting the immutable flag on a file (using template module). It sets the immutable flag fine on cent/rhel7, but on cent/rhel/oel6 it complains. I can set it manually on the \*6 boxes just fine. Wondering why you think this may be failing. Seems like a bug with ansible to me:

`ok: [ansibletest-rhel7] fatal: [ansibletest-rhel6]: FAILED! => {"changed": false, "details": "Error while setting attributes: /usr/bin/chattr: Clearing extent flag not supported on /etc/resolv.conf\n", "failed": true, "gid": 0, "group": "root", "mode": "0644", "msg": "chattr failed", "owner": "root", "path": "/etc/resolv.conf", "size": 90, "state": "file", "uid": 0} ...ignoring fatal: [ansibletest-oel6]: FAILED! => {"changed": false, "details": "Error while setting attributes: /etc/resolv.conf: Operation not supported\n", "failed": true, "gid": 0, "group": "root", "mode": "0644", "msg": "chattr failed", "owner": "root", "path": "/etc/resolv.conf", "size": 90, "state": "file", "uid": 0} ...ignoring ok: [cent7] fatal: [rhel6]: FAILED! => {"changed": false, "details": "Error while setting attributes: /usr/bin/chattr: Clearing extent flag not supported on /etc/resolv.conf\n", "failed": true, "gid": 0, "group": "root", "mode": "0644", "msg": "chattr failed", "owner": "root", "path": "/etc/resolv.conf", "secontext": "system_u:object_r:net_conf_t:s0", "size": 90, "state": "file", "uid": 0} ...ignoring`

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [September 6, 2017, 3:01pm UTC](https://forum.ansible.com/t/attr-i-failing-on-cent-rhel-oel6-why/25409/2 "2017-09-06T15:01:27Z")

</div>

Could it be SELinux related?

---

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [September 6, 2017, 3:15pm UTC](https://forum.ansible.com/t/attr-i-failing-on-cent-rhel-oel6-why/25409/3 "2017-09-06T15:15:06Z")

</div>

selinux isn’t enabled
