small fixes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-07-17 23:56:25 +02:00
parent 521b369f58
commit 853d645ce9

View File

@ -104,7 +104,18 @@
become_user: root
- block:
- name: Add vhost configuration files
- name: Add default page
template:
src: var/www/vhosts/default/index.html.j2
dest: /var/www/vhosts/default/index.html
owner: "{{ nginx_user }}"
group: "{{ nginx_group }}"
mode: 0750
become: True
become_user: "{{ nginx_user }}"
- block:
- name: Add vhost configurations
template:
src: etc/nginx/sites-available/vhost.j2
dest: "/etc/nginx/sites-available/{{ item.file }}"
@ -129,6 +140,5 @@
loop_control:
label: "{{ item.file }}"
notify: __nginx_reload
when: nginx_default_page_enabled | bool
become: True
become_user: root