fix some typos
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-07-17 23:47:31 +02:00
parent ad0b3304c4
commit 521b369f58
2 changed files with 2 additions and 16 deletions

View File

@ -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

View File

@ -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 }}"