From 0b60a92826d0971fffed434ca228626766fe39f8 Mon Sep 17 00:00:00 2001 From: Raoul Date: Wed, 4 Nov 2020 06:02:00 +0100 Subject: [PATCH] Remove default configuration from nginx package --- tasks/nginx.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tasks/nginx.yml b/tasks/nginx.yml index b7e72dd..ebe62a8 100644 --- a/tasks/nginx.yml +++ b/tasks/nginx.yml @@ -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'