mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Don't create main.yml in files/templates directories on galaxy init
This commit is contained in:
@@ -523,7 +523,7 @@ def execute_init(args, options):
|
||||
f.write(rendered_meta)
|
||||
f.close()
|
||||
pass
|
||||
else:
|
||||
elif dir not in ('files','templates'):
|
||||
# just write a (mostly) empty YAML file for main.yml
|
||||
f = open(main_yml_path, 'w')
|
||||
f.write('---\n# %s file for %s\n' % (dir,role_name))
|
||||
|
||||
Reference in New Issue
Block a user