ansible-roles/webapps/evoadmin-web/tasks/config.yml

32 lines
973 B
YAML
Raw Normal View History

2017-07-03 18:22:24 +02:00
---
- name: "Create /etc/evolinux"
file:
dest: "/etc/evolinux"
recurse: True
2017-07-03 18:22:24 +02:00
state: directory
- name: Configure web-add config file
template:
src: "{{ item }}"
2017-07-03 18:22:24 +02:00
dest: /etc/evolinux/web-add.conf
force: "{{ evoadmin_add_conf_force }}"
with_first_found:
- "templates/evoadmin-web/web-add.{{ inventory_hostname }}.conf.j2"
- "templates/evoadmin-web/web-add.{{ host_group }}.conf.j2"
- "templates/evoadmin-web/web-add.conf.j2"
- "web-add.conf.j2"
register: evoadmin_add_conf_template
2017-07-03 18:22:24 +02:00
- name: Configure web-add template file for mail
template:
src: "{{ item }}"
2017-07-03 18:22:24 +02:00
dest: "{{ evoadmin_scripts_dir }}/web-mail.tpl"
force: "{{ evoadmin_mail_tpl_force }}"
with_first_found:
- "templates/evoadmin-web/web-mail.{{ inventory_hostname }}.tpl.j2"
- "templates/evoadmin-web/web-mail.{{ host_group }}.tpl.j2"
- "templates/evoadmin-web/web-mail.tpl.j2"
- "web-mail.tpl.j2"
register: evoadmin_mail_tpl_template