2017-07-03 18:22:24 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: "Create /etc/evolinux"
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.file:
|
2017-07-03 18:22:24 +02:00
|
|
|
dest: "/etc/evolinux"
|
2019-09-23 21:57:08 +02:00
|
|
|
recurse: True
|
2017-07-03 18:22:24 +02:00
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Configure web-add config file
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.template:
|
2019-05-06 22:00:45 +02:00
|
|
|
src: "{{ item }}"
|
2017-07-03 18:22:24 +02:00
|
|
|
dest: /etc/evolinux/web-add.conf
|
2019-08-27 15:58:08 +02:00
|
|
|
force: "{{ evoadmin_add_conf_force }}"
|
2021-05-04 13:39:47 +02:00
|
|
|
loop: "{{ query('first_found', templates) }}"
|
|
|
|
vars:
|
|
|
|
templates:
|
2021-05-19 17:02:15 +02:00
|
|
|
- "templates/evoadmin-web/web-add.{{ inventory_hostname }}.conf.j2"
|
|
|
|
- "templates/evoadmin-web/web-add.{{ host_group | default('all') }}.conf.j2"
|
|
|
|
- "templates/evoadmin-web/web-add.conf.j2"
|
|
|
|
- "templates/web-add.conf.j2"
|
2019-08-27 16:23:04 +02:00
|
|
|
register: evoadmin_add_conf_template
|
2017-07-03 18:22:24 +02:00
|
|
|
|
|
|
|
- name: Configure web-add template file for mail
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.template:
|
2019-05-06 22:00:45 +02:00
|
|
|
src: "{{ item }}"
|
2017-07-03 18:22:24 +02:00
|
|
|
dest: "{{ evoadmin_scripts_dir }}/web-mail.tpl"
|
2019-08-27 15:58:08 +02:00
|
|
|
force: "{{ evoadmin_mail_tpl_force }}"
|
2021-05-04 13:39:47 +02:00
|
|
|
loop: "{{ query('first_found', templates) }}"
|
|
|
|
vars:
|
|
|
|
templates:
|
|
|
|
- "templates/evoadmin-web/web-mail.{{ inventory_hostname }}.tpl.j2"
|
2021-05-19 14:35:08 +02:00
|
|
|
- "templates/evoadmin-web/web-mail.{{ host_group | default('all') }}.tpl.j2"
|
2021-05-04 13:39:47 +02:00
|
|
|
- "templates/evoadmin-web/web-mail.tpl.j2"
|
|
|
|
- "templates/web-mail.tpl.j2"
|
2019-08-27 16:23:04 +02:00
|
|
|
register: evoadmin_mail_tpl_template
|