# files from .gitignore not found

**URL:** <https://forum.ansible.com/t/files-from-gitignore-not-found/33606>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [August 13, 2020, 3:24pm UTC](https://forum.ansible.com/t/files-from-gitignore-not-found/33606 "2020-08-13T15:24:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user59](https://avatars.discourse-cdn.com/v4/letter/u/74df32/32.png) [@user59](https://forum.ansible.com/u/user59)\
**Post date:** [August 13, 2020, 3:24pm UTC](https://forum.ansible.com/t/files-from-gitignore-not-found/33606/1 "2020-08-13T15:24:50Z")

</div>

Hi there! I want to use git-project in Ansible tower. I successfully created Git Project and template based on role /roles/mytest/. However I dont want to store /roles/mytest/files in the github, so I created /roles/mytest/files/.gitignore.

Then I created manually file test.txt in the folder /var/lib/awx/projects/\_8\_\_test\_git/roles/mytest/files/. Then I start playbook:

- name: list files  
local\_action: command ls -Ra ./  
register: zzz

- name: debug  
debug:  
msg: “{{zzz.stdout\_lines}}”

Unfortunally, file test.txt wasn’t found in result list. What can I do? I want to use git, but I dont want to store any folders (such as /files/, etc) in the git. Thanks!
