29 lines
841 B
YAML
29 lines
841 B
YAML
---
|
|
- name: Copy configuration files
|
|
template:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
loop:
|
|
- src: nginx/sites-available/mailman.j2
|
|
dest: /etc/nginx/sites-available/mailman
|
|
- src: nginx/mailman_passwd.j2
|
|
dest: /etc/nginx/mailman_passwd
|
|
- src: nginx/snippets/fastcgi-mailman.conf.j2
|
|
dest: /etc/nginx/snippets/fastcgi-mailman.conf
|
|
- src: nginx/snippets/options-ssl.conf.j2
|
|
dest: /etc/nginx/snippets/options-ssl.conf
|
|
- src: var/www/robots.txt.j2
|
|
dest: /var/www/robots.txt
|
|
- src: var/www/custom_401.html.j2
|
|
dest: /var/www/custom_401.html
|
|
notify: Reload nginx
|
|
|
|
- name: Enable mailman
|
|
file:
|
|
src: /etc/nginx/sites-available/mailman
|
|
dest: /etc/nginx/sites-enabled/mailman
|
|
state: link
|
|
force: true
|
|
when: not ansible_check_mode
|
|
notify: Reload nginx
|