27 lines
761 B
YAML
27 lines
761 B
YAML
---
|
|
- name: "gateway | Domain zur Zertifikatsliste hinzufügen"
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/dehydrated/domains.txt
|
|
insertafter: "^# systemausfall"
|
|
line: "{{ lstu.domain }}"
|
|
notify: get certificate
|
|
tags: gateway_cert
|
|
|
|
- name: "gateway | Kopiere Konfigurations-Snippet"
|
|
ansible.builtin.copy:
|
|
src: lstu.conf
|
|
dest: /etc/nginx/snippets
|
|
mode: 0644
|
|
|
|
- name: "gateway | Proxy einrichten"
|
|
ansible.builtin.template:
|
|
src: nginx-rp-site.j2
|
|
dest: "/etc/nginx/sites-available/{{ lstu.domain }}"
|
|
mode: 0644
|
|
|
|
- name: "gateway | Seite aktivieren"
|
|
ansible.builtin.file:
|
|
src: "/etc/nginx/sites-available/{{ lstu.domain }}"
|
|
dest: "/etc/nginx/sites-enabled/{{ lstu.domain }}"
|
|
state: link
|
|
notify: reload nginx
|