2022-11-16 11:17:37 +01:00
|
|
|
---
|
2022-11-16 16:04:01 +01:00
|
|
|
- name: recieve {{domain}} certificate
|
|
|
|
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
|
2022-11-16 11:17:37 +01:00
|
|
|
|
2022-11-16 16:04:01 +01:00
|
|
|
- name: configure {{domain}}.conf
|
2023-11-18 20:02:55 +01:00
|
|
|
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
2022-11-16 11:17:37 +01:00
|
|
|
notify: restart nginx
|
|
|
|
|
2022-11-16 16:04:01 +01:00
|
|
|
- name: "create {{docker_compose_path}}"
|
2022-11-16 11:17:37 +01:00
|
|
|
file:
|
2022-11-16 16:04:01 +01:00
|
|
|
path: "{{docker_compose_path}}"
|
2022-11-16 11:17:37 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2023-04-19 00:03:13 +02:00
|
|
|
- name: add docker-compose.yml
|
|
|
|
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
2022-11-16 11:17:37 +01:00
|
|
|
notify: recreate pixelfed
|
2022-11-16 16:04:01 +01:00
|
|
|
|
|
|
|
- name: add env
|
|
|
|
template:
|
|
|
|
src: env.j2
|
|
|
|
dest: "{{docker_compose_path}}env"
|
|
|
|
mode: '770'
|
2022-12-05 09:18:52 +01:00
|
|
|
force: yes
|
2022-11-16 16:04:01 +01:00
|
|
|
notify: recreate pixelfed
|