2025-01-16 21:11:34 +01:00
|
|
|
---
|
2025-01-21 14:09:06 +01:00
|
|
|
- name: "pull homepage from {{nginx_static_repository_address}}"
|
2025-01-16 21:11:34 +01:00
|
|
|
git:
|
2025-01-21 14:09:06 +01:00
|
|
|
repo: "{{nginx_static_repository_address}}"
|
2025-01-16 21:11:34 +01:00
|
|
|
dest: "{{nginx_homepage_root}}"
|
|
|
|
update: yes
|
|
|
|
ignore_errors: true
|
|
|
|
|
2025-01-21 14:09:06 +01:00
|
|
|
- name: configure {{primary_domain}}.conf
|
2025-01-16 21:11:34 +01:00
|
|
|
template:
|
|
|
|
src: "static.nginx.conf.j2"
|
2025-01-21 14:09:06 +01:00
|
|
|
dest: "{{nginx_servers_directory}}{{primary_domain}}.conf"
|
2025-01-16 21:11:34 +01:00
|
|
|
vars:
|
2025-01-21 14:09:06 +01:00
|
|
|
domain: "{{primary_domain}}"
|
2025-01-16 21:11:34 +01:00
|
|
|
notify: restart nginx
|
|
|
|
when: run_once_nginx is not defined
|