fix(mailman): workaround for debian bug

This commit is contained in:
s3lph 2023-07-01 22:23:42 +02:00
parent f13f3b38f7
commit f4116c9b5c
3 changed files with 22 additions and 1 deletions
galaxy.yml
roles/mailman
tasks
templates/etc/mailman3

View file

@ -8,7 +8,7 @@ namespace: s3lph
name: mailserver
# The version of the collection. Must be compatible with semantic versioning
version: '0.3.6'
version: '0.3.7'
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md

View file

@ -43,3 +43,13 @@
group: postfix
mode: 0640
notify: reload postfix
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037358
- name: disable gatenews cronjob
ansible.builtin.lineinfile:
file: /etc/cron.d/mailman3
regexp: '^#(?/*/usr/bin/mailman gatenews.*)$'
line: '#\1'
when:
- "ansible_facts.distribution == 'Debian'"
- "ansible_facts.distribution_major_version | int > 11"

View file

@ -219,4 +219,15 @@ TEMPLATES = [
},
}
]
{% endif %}
{% if ansible_facts.distribution == 'Debian' and ansible_facts.distribution_major_version | int > 11 %}
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037358
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
Q_CLUSTER = {
'retry': 900,
'timeout': 300,
'save_limit': 100,
'orm': 'default',
}
{% endif %}