Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Ignore files from role #222

Closed
srizzling opened this issue Dec 1, 2016 · 3 comments
Closed

Ignore files from role #222

srizzling opened this issue Dec 1, 2016 · 3 comments

Comments

@srizzling
Copy link

srizzling commented Dec 1, 2016

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
Copy link

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

@srizzling
Copy link
Author

srizzling commented Apr 25, 2017

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
Copy link
Contributor

This issue was moved to ansible/galaxy#78

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants