fc692cf65b
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Use “when: not ansible_check_mode” or “when <file>.stat.exists or not
ansible_check_mode” in order to provide a meaningful diff if possible.
This is an improvement from the previously reverted commit
1728eaee68
.
29 lines
653 B
YAML
29 lines
653 B
YAML
---
|
|
|
|
- name: "Ensure that evoadmin_contact_email is defined"
|
|
fail:
|
|
msg: Please configure var evoadmin_contact_email
|
|
when:
|
|
- evoadmin_contact_email is none or evoadmin_contact_email | length == 0
|
|
- not ansible_check_mode
|
|
|
|
- include: packages.yml
|
|
|
|
- include: user.yml
|
|
|
|
- include: config.yml
|
|
|
|
- include: ssl.yml
|
|
|
|
- include: web.yml
|
|
|
|
- include: ftp.yml
|
|
|
|
- name: enable evoadmin-web link in default site index
|
|
blockinfile:
|
|
dest: /var/www/index.html
|
|
marker: "<!-- {mark} evoadmin-web section -->"
|
|
block: |
|
|
<li><a href="https://{{ evoadmin_host }}">Interface admin web (EvoAdmin-web)</a></li>
|
|
when: not ansible_check_mode
|