Don't create main.yml in files/templates directories on galaxy init

pull/5340/head
James Cammarata 11 years ago
parent a14d1ca485
commit 0d4294da42

@ -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))

Loading…
Cancel
Save