This commit is contained in:
parent
ad0b3304c4
commit
521b369f58
@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: all
|
hosts: all
|
||||||
vars:
|
|
||||||
nginx_default_page_enabled: True
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: xoxys.nginx
|
- role: xoxys.nginx
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
- name: Set selinux booleans
|
- name: Set selinux booleans
|
||||||
seboolean:
|
seboolean:
|
||||||
name: "{{ item.file }}"
|
name: "{{ item.name }}"
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
persistent: "{{ item.persistent }}"
|
persistent: "{{ item.persistent }}"
|
||||||
loop: "{{ nginx_set_sebooleans }}"
|
loop: "{{ nginx_set_sebooleans }}"
|
||||||
@ -104,19 +104,7 @@
|
|||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Add default page
|
- name: Add vhost configuration files
|
||||||
template:
|
|
||||||
src: var/www/vhosts/default/index.html.j2
|
|
||||||
dest: /var/www/vhosts/default/index.html
|
|
||||||
owner: "{{ nginx_user }}"
|
|
||||||
group: "{{ nginx_group }}"
|
|
||||||
mode: 0750
|
|
||||||
when: nginx_default_page_enabled | bool
|
|
||||||
become: True
|
|
||||||
become_user: "{{ nginx_user }}"
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Add default page configuration file
|
|
||||||
template:
|
template:
|
||||||
src: etc/nginx/sites-available/vhost.j2
|
src: etc/nginx/sites-available/vhost.j2
|
||||||
dest: "/etc/nginx/sites-available/{{ item.file }}"
|
dest: "/etc/nginx/sites-available/{{ item.file }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user