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.
This commit is contained in:
Brice Waegeneire 2022-06-01 16:42:36 +02:00
parent e198cf67dc
commit 71879b999c
2 changed files with 3 additions and 14 deletions

View File

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

View File

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