# Trouble Setting Directory Ownership On Ubuntu 14.04 Virtualbox

**URL:** <https://forum.ansible.com/t/trouble-setting-directory-ownership-on-ubuntu-14-04-virtualbox/22169>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [July 30, 2016, 12:23am UTC](https://forum.ansible.com/t/trouble-setting-directory-ownership-on-ubuntu-14-04-virtualbox/22169 "2016-07-30T00:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Willis](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@Kyle\_Willis](https://forum.ansible.com/u/Kyle_Willis)\
**Post date:** [July 30, 2016, 12:23am UTC](https://forum.ansible.com/t/trouble-setting-directory-ownership-on-ubuntu-14-04-virtualbox/22169/1 "2016-07-30T00:23:41Z")

</div>

I am trying to define the ownership for a directory located in a Ubuntu 14.04 Virtual machine, which was created with vagrant and provisioned using Ansible. The approach I’m currently using results in no change to the directory ownership when I `ls -l` the directory. How do I change the directory’s user to `foo` and group to `bar`?

Below I have provided the playbook and Vagrantfile

**vagrant.yml:**

`
