|
|
|
@ -62,25 +62,6 @@
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
mode: '0444'
|
|
|
|
|
- name: Install mailman mk-archives-index
|
|
|
|
|
copy:
|
|
|
|
|
src: mk-archives-index
|
|
|
|
|
dest: /usr/local/sbin/mk-archives-index
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
mode: '0744'
|
|
|
|
|
- name: Set cron PATH for mk-archives-index
|
|
|
|
|
cron:
|
|
|
|
|
name: PATH
|
|
|
|
|
env: yes
|
|
|
|
|
job: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
|
|
|
|
- name: Enable mk-archives-index cron
|
|
|
|
|
cron:
|
|
|
|
|
name: "mk-archives-index cron"
|
|
|
|
|
state: present
|
|
|
|
|
job: mk-archives-index > /var/www/archives.yaml
|
|
|
|
|
minute: "0"
|
|
|
|
|
hour: "0"
|
|
|
|
|
- name: Create mm sites file
|
|
|
|
|
template:
|
|
|
|
|
src: sites.j2
|
|
|
|
@ -101,6 +82,30 @@
|
|
|
|
|
src: "domain_aliases.j2"
|
|
|
|
|
dest: "/etc/aliases.domain"
|
|
|
|
|
mode: 0444
|
|
|
|
|
- name: Install mailman mk-archives-index
|
|
|
|
|
copy:
|
|
|
|
|
src: mk-archives-index
|
|
|
|
|
dest: /usr/local/sbin/mk-archives-index
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
mode: '0744'
|
|
|
|
|
- name: Set cron PATH for mk-archives-index
|
|
|
|
|
cron:
|
|
|
|
|
name: PATH
|
|
|
|
|
env: yes
|
|
|
|
|
job: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
|
|
|
|
- name: Pre-run mk-archives-index
|
|
|
|
|
shell:
|
|
|
|
|
cmd: /usr/local/sbin/mk-archives-index > /var/www/archives.yaml
|
|
|
|
|
args:
|
|
|
|
|
creates: /var/www/archives.yaml
|
|
|
|
|
- name: Enable mk-archives-index cron
|
|
|
|
|
cron:
|
|
|
|
|
name: "mk-archives-index cron"
|
|
|
|
|
state: present
|
|
|
|
|
job: mk-archives-index > /var/www/archives.yaml
|
|
|
|
|
minute: "0"
|
|
|
|
|
hour: "0"
|
|
|
|
|
when: mailman_multihost
|
|
|
|
|
|
|
|
|
|
- name: normal mailman configs
|
|
|
|
|