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 - name: Deploy top configuration file
copy: file:
# The config format is unredable; ATM it only add the SWAP column path: /etc/topdefaultrc
src: topdefaultrc state: absent
dest: /etc/topdefaultrc
mode: "0644"

View File

@ -16,12 +16,3 @@
tags: tags:
- nginx - nginx
- packages - packages
- name: Service is running as configured.
service:
name: nginx
state: "{{ nginx_service_state }}"
enabled: "{{ nginx_service_enabled }}"
tags:
- nginx
- packages