1
0
Fork 0
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:
Raoul 2020-11-04 06:02:00 +01:00
parent cbf2aedff7
commit 0b60a92826
No known key found for this signature in database
GPG key ID: C7493D73B67C1842

View file

@ -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'