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.
lxc_etc-git
Brice Waegeneire 4 months ago
parent e198cf67dc
commit 71879b999c
  1. 8
      evolinux-base/tasks/top.yml
  2. 9
      nginx/tasks/packages.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

@ -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…
Cancel
Save