mirror of
https://github.com/DO1JLR/ansible_role_nginx.git
synced 2024-08-16 16:19:48 +02:00
Remove default configuration from nginx package
This commit is contained in:
parent
cbf2aedff7
commit
0b60a92826
1 changed files with 13 additions and 0 deletions
|
@ -50,6 +50,19 @@
|
|||
- nginx
|
||||
|
||||
|
||||
# Todo: Reconsider best practices
|
||||
- name: Remove default site config from package installation
|
||||
file:
|
||||
path: '{{ item }}'
|
||||
state: absent
|
||||
with_items:
|
||||
- '/etc/nginx/sites-enabled/default'
|
||||
- '/etc/nginx/sites-available/default'
|
||||
tags:
|
||||
- configuration
|
||||
- nginx
|
||||
|
||||
|
||||
- name: Create 'snippets' directory
|
||||
file:
|
||||
path: '/etc/nginx/snippets'
|
||||
|
|
Loading…
Reference in a new issue