1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/mta_sts/tasks/main.yml
Evangelos Foutras 578b781966
Capitalize the handler name in handler invocations
Fixes: 26f289b72bfb ("Capitalize the first letter of all task names")
2022-08-29 21:46:39 +03:00

16 lines
499 B
YAML

- name: Create ssl cert
include_role:
name: certificate
vars:
domains: "{{ ['mta-sts.'] | product(item.domains) | map('join') }}"
loop: "{{ mta_sts }}"
- name: Make nginx log dir
file: path=/var/log/nginx/{{ "mta-sts." + item.domains | first }} state=directory owner=root group=root mode=0755
loop: "{{ mta_sts }}"
- name: Set up nginx
template: src=nginx.d.conf.j2 dest="/etc/nginx/nginx.d/mta-sts.conf" owner=root group=root mode=644
notify: Reload nginx
tags: ['nginx']