From 71879b999c22b47927ac7fab6c588d3571263b08 Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Wed, 1 Jun 2022 16:42:36 +0200 Subject: [PATCH] nginx: Start server once. Nginx is already started at the end of the main task. Starting the service before we configure it correctly can put the role as failed if the default configuration don't work on the host. --- evolinux-base/tasks/top.yml | 8 +++----- nginx/tasks/packages.yml | 9 --------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/evolinux-base/tasks/top.yml b/evolinux-base/tasks/top.yml index 64fdf6b6..367791e7 100644 --- a/evolinux-base/tasks/top.yml +++ b/evolinux-base/tasks/top.yml @@ -1,7 +1,5 @@ --- - name: Deploy top configuration file - copy: - # The config format is unredable; ATM it only add the SWAP column - src: topdefaultrc - dest: /etc/topdefaultrc - mode: "0644" + file: + path: /etc/topdefaultrc + state: absent diff --git a/nginx/tasks/packages.yml b/nginx/tasks/packages.yml index f9a500c0..f2c0596f 100644 --- a/nginx/tasks/packages.yml +++ b/nginx/tasks/packages.yml @@ -16,12 +16,3 @@ tags: - nginx - packages - -- name: Service is running as configured. - service: - name: nginx - state: "{{ nginx_service_state }}" - enabled: "{{ nginx_service_enabled }}" - tags: - - nginx - - packages