Added remote templating engine using jinja2, see examples/playbook.yml for usage.

Cleanup is due in runner.py
This commit is contained in:
Michael DeHaan 2012-02-24 04:35:51 -05:00
parent 5d6b0280d5
commit 440bac4a95
5 changed files with 121 additions and 19 deletions

View file

@ -2,7 +2,6 @@
ANSIBLE_DIR = "/etc/ansible"
ANSIBLE_SETUP = "/etc/ansible/setup"
ANSIBLE_TEMPLATES = "/srv/ansible/templates"
import sys
import os
@ -18,12 +17,6 @@ except ImportError:
input_data = sys.argv[1:]
new_options = dict([ x.split("=") for x in input_data ])
# make a directory to store templates
# if it does not already exist
if not os.path.exists(ANSIBLE_TEMPLATES):
os.makedirs(ANSIBLE_TEMPLATES)
# create the config dir if it doesn't exist
if not os.path.exists(ANSIBLE_DIR):