Commit fdda2c15 by Feanil Patel

Use Jinja syntax.

parent 0d14b78d
#write the gunicorn upstart script for {{ service_variant }}
- name: writing ${service_variant} upstart script to /etc/init
# write the gunicorn upstart script for {{ service_variant }}
- name: writing {{ service_variant }} upstart script to /etc/init
sudo: True
template: src={{ item }} dest=/etc/init/${service_variant}.conf owner=root group=root
template: src={{ item }} dest=/etc/init/{{ service_variant }}.conf owner=root group=root
first_available_file:
- "{{ local_dir }}/gunicorn/templates/{{ service_variant }}.conf.j2"
# seems like paths in first_available_file must be relative to the playbooks dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment