# release1.5.5: file module does not set mode on directory, if it exists

**URL:** <https://forum.ansible.com/t/release1-5-5-file-module-does-not-set-mode-on-directory-if-it-exists/15126>\
**Category:** Ansible Project\
**Created:** [April 30, 2014, 11:20pm UTC](https://forum.ansible.com/t/release1-5-5-file-module-does-not-set-mode-on-directory-if-it-exists/15126 "2014-04-30T23:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadim\_Shkolin](https://avatars.discourse-cdn.com/v4/letter/v/ba9def/32.png) [@Vadim\_Shkolin](https://forum.ansible.com/u/Vadim_Shkolin)\
**Post date:** [April 30, 2014, 11:20pm UTC](https://forum.ansible.com/t/release1-5-5-file-module-does-not-set-mode-on-directory-if-it-exists/15126/1 "2014-04-30T23:20:59Z")

</div>

drwxr----- 3 root zabbix 4096 Apr 30 22:21 /var/lib/zabbix

playbook action:

- name: “zabbix client: make directory /var/lib/zabbix”  
action: file state=directory path=/var/lib/zabbix  
owner=root group=zabbix mode=0740 setype=\_default

rtv : ok=6 changed=0 unreachable=0 failed=0

release1.5.5

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 1, 2014, 9:15pm UTC](https://forum.ansible.com/t/release1-5-5-file-module-does-not-set-mode-on-directory-if-it-exists/15126/2 "2014-05-01T21:15:20Z")

</div>

If this same bug exists on the development branch please report it on github at [github.com/ansible/ansible](http://github.com/ansible/ansible).

Thanks!

–Michael
