mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-01-22 15:08:47 +01:00
16 lines
453 B
YAML
16 lines
453 B
YAML
---
|
|
- name: "pull homepage from {{nginx_static_repository_address}}"
|
|
git:
|
|
repo: "{{nginx_static_repository_address}}"
|
|
dest: "{{nginx_homepage_root}}"
|
|
update: yes
|
|
ignore_errors: true
|
|
|
|
- name: configure {{primary_domain}}.conf
|
|
template:
|
|
src: "static.nginx.conf.j2"
|
|
dest: "{{nginx_servers_directory}}{{primary_domain}}.conf"
|
|
vars:
|
|
domain: "{{primary_domain}}"
|
|
notify: restart nginx
|
|
when: run_once_nginx is not defined |