sensu / sensu-ansible

An Ansible role to deploy a fully dynamic Sensu stack!
https://ansible-sensu.readthedocs.io
MIT License
126 stars 96 forks source link

[Cleanup] Dont publish testing/dev files to Ansible Galaxy #170

Closed jaredledvina closed 6 years ago

jaredledvina commented 6 years ago

I noticed that the installed role from ansible-galaxy install ends up with a ton of cruft (testing bits, docs, etc).

This uses a trick from https://github.com/srizzling/rkt-role/blob/master/.gitattributes which I found over on https://github.com/ansible/galaxy/issues/78 to have Ansible Galaxy not publish the role with the configured files/directories. See https://git-scm.com/docs/gitattributes#_creating_an_archive as well.