Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore files from role #78

Open
chouseknecht opened this issue Oct 13, 2017 · 3 comments
Open

Ignore files from role #78

chouseknecht opened this issue Oct 13, 2017 · 3 comments

Comments

@chouseknecht
Copy link
Contributor

From @srizzling on December 1, 2016 22:50

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

Copied from original issue: ansible/galaxy-issues#222

@chouseknecht
Copy link
Contributor Author

From @danlamanna on April 25, 2017 17:27

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

@chouseknecht
Copy link
Contributor Author

From @srizzling on April 25, 2017 21:46

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.

@nottheswimmer
Copy link

Any progress on this? Two years later and I find myself still needing a solution.

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

No branches or pull requests

2 participants