computer-playbook/roles/docker-pixelfed/tasks/main.yml

25 lines
765 B
YAML
Raw Normal View History

2022-11-16 11:17:37 +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
- name: configure {{domain}}.conf
template: src=roles/native-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
- name: "create {{docker_compose_path}}"
2022-11-16 11:17:37 +01:00
file:
path: "{{docker_compose_path}}"
2022-11-16 11:17:37 +01:00
state: directory
mode: 0755
- 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
- name: add env
template:
src: env.j2
dest: "{{docker_compose_path}}env"
mode: '770'
force: no
notify: recreate pixelfed