Commit de251f9e authored by bow's avatar bow
Browse files

Add task for creating config file

parent 6610e9d3
......@@ -49,3 +49,6 @@
- name: copy assembled jar as deployment jar if required
copy: src={{ sentinel_asm_jar }} dest={{ sentinel_dep_jar }} remote_src=yes force=yes owner={{ sentinel_user }}
when: not dep_jar.stat.exists
- name: copy config file
template: src=sentinel.conf.j2 dest={{ sentinel_dep_jar|dirname }}/sentinel.conf owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
# {{ ansible_managed }}
mongodb.userName={{ mongodb_user_sentinel_name }}
mongodb.password={{ mongodb_user_sentinel_password }}
{% if sentinel_production %}
sentinel.env=production
{% else %}
sentinel.env=development
{% endif %}
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