mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Added remote templating engine using jinja2, see examples/playbook.yml for usage.
Cleanup is due in runner.py
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user