computer-playbook/roles/server_docker-funkwhale/tasks/main.yml

25 lines
798 B
YAML
Raw Normal View History

2022-12-05 17:43:21 +01:00
---
- name: recieve {{domain}} certificate
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
- name: configure {{domain}}.conf
2023-04-18 15:41:14 +02:00
template: src=roles/server_native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
2022-12-05 17:43:21 +01:00
notify: restart nginx
- name: "create {{docker_compose_path}}"
file:
path: "{{docker_compose_path}}"
state: directory
mode: 0755
2023-04-18 15:41:14 +02:00
- name: add server_docker-compose.yml
template: src=server_docker-compose.yml.j2 dest={{docker_compose_path}}server_docker-compose.yml
2022-12-05 17:43:21 +01:00
notify: recreate funkwhale
2022-12-05 20:47:15 +01:00
- name: add .env
2022-12-05 17:43:21 +01:00
template:
src: env.j2
2022-12-05 20:47:15 +01:00
dest: "{{docker_compose_path}}.env"
2022-12-05 17:43:21 +01:00
mode: '770'
force: yes
notify: recreate funkwhale