refactored docker and nginx roles, to make them more modular

This commit is contained in:
2023-12-06 17:59:57 +01:00
parent 994b61dd1a
commit ed40ee1f42
24 changed files with 58 additions and 135 deletions

View File

@@ -1,9 +1,5 @@
- 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
template: src=roles/nginx-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
- name: "docker mediawiki"
docker_compose: