2023-12-06 17:59:57 +01:00
|
|
|
---
|
|
|
|
- name: "include task certbot-matomo.yml"
|
|
|
|
include_tasks: certbot-matomo.yml
|
|
|
|
|
2020-12-24 14:27:31 +01:00
|
|
|
- name: configure {{domain}}.conf
|
2021-01-03 00:29:24 +01:00
|
|
|
template: src=homepage.nginx.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
2020-12-24 14:27:31 +01:00
|
|
|
notify: restart nginx
|
|
|
|
|
2023-11-17 13:54:56 +01:00
|
|
|
- name: nginx-homepage repo git
|
2020-12-24 14:27:31 +01:00
|
|
|
git:
|
2023-11-17 13:54:56 +01:00
|
|
|
repo: "{{nginx_homepage_repository_address}}"
|
|
|
|
dest: "{{nginx_homepage_root}}"
|
2020-12-24 14:27:31 +01:00
|
|
|
update: yes
|
2023-05-28 23:08:38 +02:00
|
|
|
register: git_result
|
|
|
|
ignore_errors: true
|
|
|
|
|
|
|
|
- name: Warn if repo is not reachable
|
|
|
|
debug:
|
|
|
|
msg: "Warning: Repository is not reachable."
|
|
|
|
when: git_result.failed
|