Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
---
|
|
|
|
- name: "Create /etc/evolinux"
|
|
ansible.builtin.file:
|
|
dest: "/etc/evolinux"
|
|
recurse: True
|
|
state: directory
|
|
|
|
- name: Configure web-add config file
|
|
ansible.builtin.template:
|
|
src: "{{ item }}"
|
|
dest: /etc/evolinux/web-add.conf
|
|
force: "{{ evoadmin_add_conf_force }}"
|
|
loop: "{{ query('first_found', templates) }}"
|
|
vars:
|
|
templates:
|
|
- "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"
|
|
register: evoadmin_add_conf_template
|
|
|
|
- name: Configure web-add template file for mail
|
|
ansible.builtin.template:
|
|
src: "{{ item }}"
|
|
dest: "{{ evoadmin_scripts_dir }}/web-mail.tpl"
|
|
force: "{{ evoadmin_mail_tpl_force }}"
|
|
loop: "{{ query('first_found', templates) }}"
|
|
vars:
|
|
templates:
|
|
- "templates/evoadmin-web/web-mail.{{ inventory_hostname }}.tpl.j2"
|
|
- "templates/evoadmin-web/web-mail.{{ host_group | default('all') }}.tpl.j2"
|
|
- "templates/evoadmin-web/web-mail.tpl.j2"
|
|
- "templates/web-mail.tpl.j2"
|
|
register: evoadmin_mail_tpl_template
|