mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Removed default setup of static homepage
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
---
|
||||
- name: "pull homepage from {{nginx_homepage_repository_address}}"
|
||||
git:
|
||||
repo: "{{nginx_homepage_repository_address}}"
|
||||
dest: "{{nginx_homepage_root}}"
|
||||
update: yes
|
||||
ignore_errors: true
|
@@ -26,7 +26,7 @@ This Ansible role configures an Nginx server to serve a static homepage. It hand
|
||||
```yaml
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: nginx-homepage, domain: 'example.com', administrator_email: 'admin@example.com' }
|
||||
- { role: nginx-static-repository, domain: 'example.com', administrator_email: 'admin@example.com' }
|
||||
```
|
||||
|
||||
## Author Information
|
16
roles/nginx-static-repository/tasks/main.yml
Normal file
16
roles/nginx-static-repository/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: "pull homepage from {{nginx_homepage_repository_address}}"
|
||||
git:
|
||||
repo: "{{nginx_homepage_repository_address}}"
|
||||
dest: "{{nginx_homepage_root}}"
|
||||
update: yes
|
||||
ignore_errors: true
|
||||
|
||||
- name: configure {{top_domain}}.conf
|
||||
template:
|
||||
src: "static.nginx.conf.j2"
|
||||
dest: "{{nginx_servers_directory}}{{top_domain}}.conf"
|
||||
vars:
|
||||
domain: "{{top_domain}}"
|
||||
notify: restart nginx
|
||||
when: run_once_nginx is not defined
|
Reference in New Issue
Block a user