while-true-do / ansible-skeleton

The skeleton to create new ansible roles.
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

git directory existing after ansible-galaxy init #3

Closed dschier-wtd closed 6 years ago

dschier-wtd commented 6 years ago

Type of Report

Bug / Workaround

Actual behaviour

Due to a bug in ansible-galaxy, the .git directory is existing after ansible-galaxy init. This can be worked around with configure options in ansible.cfg

http://docs.ansible.com/ansible/latest/galaxy.html#using-a-custom-role-skeleton

[galaxy]
role_skeleton = /path/to/skeleton
role_skeleton_ignore = ^.git$,^.*/.git_keep$

Unfortunately, this is not documented.

Expected behaviour

Documentation should be fixed to have .git, .git-keep, README.md excluded via ansible.cfg or .ansible.cfg.