mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Removed bugs and implemented new server config structure
This commit is contained in:
@@ -3,11 +3,15 @@
|
||||
pacman: name=nginx state=present
|
||||
notify: restart nginx
|
||||
|
||||
- name: set /etc/nginx/conf.d
|
||||
- name: Ensure nginx configuration directories are present
|
||||
file:
|
||||
path: /etc/nginx/conf.d
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
mode: '0755'
|
||||
loop:
|
||||
- "{{nginx_servers_directory}}"
|
||||
- "{{nginx_maps_directory}}"
|
||||
- "{{nginx_upstreams_directory}}"
|
||||
|
||||
- name: create nginx config file
|
||||
template: src=nginx.conf.j2 dest=/etc/nginx/nginx.conf
|
||||
|
Reference in New Issue
Block a user