restructuring

This commit is contained in:
Robert Kaussow 2018-09-23 20:02:02 +02:00
parent 1e8e80e249
commit ad7f1c6f7b
3 changed files with 10 additions and 9 deletions

View File

@ -118,12 +118,3 @@
when: nginx_default_page_enabled when: nginx_default_page_enabled
become: True become: True
become_user: root become_user: root
- name: Enable nginx service
systemd:
state: started
daemon_reload: yes
enabled: yes
name: nginx
become: True
become_user: root

View File

@ -2,3 +2,4 @@
- include_tasks: install.yml - include_tasks: install.yml
- include_tasks: tls.yml - include_tasks: tls.yml
when: nginx_tls_enabled when: nginx_tls_enabled
- include_tasks: post_tasks.yml

9
tasks/post_tasks.yml Normal file
View File

@ -0,0 +1,9 @@
---
- name: Ensure nginx service is up and running
systemd:
state: started
daemon_reload: yes
enabled: yes
name: nginx
become: True
become_user: root