Browse Source

Merge branch 'wip-wekan' into 'master'

wekan: define wekan_mail_from

See merge request main/infrastructure!491
keep-around/077b17623cab9d00f0c2cc464e7e6af3133359f8
Loïc Dachary 3 months ago
parent
commit
077b17623c
  1. 2
      enough-playbook.yml
  2. 11
      inventory/group_vars/wekan-service-group.yml
  3. 4
      playbooks/wekan/roles/wekan/tasks/wekan.yml

2
enough-playbook.yml

@ -32,4 +32,6 @@
when: (groups['openvpnclient-service-group'] | length) > 0
- import_playbook: "{{ '$SHARE_DIR/playbooks/psono/psono-playbook.yml' | expandvars }}"
when: (groups['psono-service-group'] | length) > 0
- import_playbook: "{{ '$SHARE_DIR/playbooks/wekan/wekan-playbook.yml' | expandvars }}"
when: (groups['wekan-service-group'] | length) > 0
- import_playbook: "{{ '$SHARE_DIR/enough-after-playbook.yml' | expandvars }}"

11
inventory/group_vars/wekan-service-group.yml

@ -1,2 +1,13 @@
---
#
####################################################
#
# public URL
#
wekan_vhost_fqdn: "wekan.{{ domain }}"
#
####################################################
#
# From mail address for mails sent by wekan
#
wekan_mail_from: "Wekan <noreply@{{ domain }}>"

4
playbooks/wekan/roles/wekan/tasks/wekan.yml

@ -17,6 +17,6 @@
shell: |
snap set wekan mail-url='smtp://{{groups['wekan-service-group'][0]}}.{{ domain }}:25/?ignoreTLS=true&tls={rejectUnauthorized:false}&secure=false'
- name: snap set wekan mail-from='Wekan <noreply@{{ domain }}>'
- name: snap set wekan mail-from='{{ wekan_mail_from }}'
shell: |
snap set wekan mail-from='Wekan <noreply@{{ domain }}>'
snap set wekan mail-from='{{ wekan_mail_from }}'

Loading…
Cancel
Save