... | ... |
@@ -523,7 +523,7 @@ def execute_init(args, options): |
523 | 523 |
f.write(rendered_meta) |
524 | 524 |
f.close() |
525 | 525 |
pass |
526 |
- else: |
|
526 |
+ elif dir not in ('files','templates'): |
|
527 | 527 |
# just write a (mostly) empty YAML file for main.yml |
528 | 528 |
f = open(main_yml_path, 'w') |
529 | 529 |
f.write('---\n# %s file for %s\n' % (dir,role_name)) |