From 0d4294da423d7d370f60d98c64ce336673e1b525 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 20 Dec 2013 09:26:42 -0600 Subject: [PATCH] Don't create main.yml in files/templates directories on galaxy init --- bin/ansible-galaxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 8d28ffa991..e567fd0564 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -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))