mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Added remote templating engine using jinja2, see examples/playbook.yml for usage.
Cleanup is due in runner.py
This commit is contained in:
parent
5d6b0280d5
commit
440bac4a95
5 changed files with 121 additions and 19 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue