ansible / galaxy-issues

This repository exists solely for the tracking of user issues with Ansible Galaxy.
20 stars 3 forks source link

Ignore files from role #222

Closed srizzling closed 6 years ago

srizzling commented 7 years ago

Is there a way I can ignore files being downloaded by the ansible-galaxy client when installing my role.

I place a vault file in my role, to make the tests run and pass, and I do not want people to download the vault file included to make the tests pass.

If this isn't part of ansible galaxy, I think it might be useful, maybe via a .galaxyignore file maybe?

Thanks, Sriram

danlamanna commented 7 years ago

Agreed, for certain roles I don't want to distribute an exhaustive test suite through Galaxy.

srizzling commented 7 years ago

There is a way, which is kind of cheating, but you can add the files you want to ignore to a .gitattributes file in repo and add the flag "export-ignore", an example is here: https://github.com/srizzling/rkt-role/blob/master/.gitattributes.

chouseknecht commented 6 years ago

This issue was moved to ansible/galaxy#78