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:
parent
e198cf67dc
commit
71879b999c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue