fix nginx/server role for openbsd
This commit is contained in:
parent
a69e66bbac
commit
e95bd87ab5
4 changed files with 20 additions and 10 deletions
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
- name: include os-specific variables
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: install nginx packages
|
||||
package:
|
||||
|
@ -11,7 +13,7 @@
|
|||
path: "{{ item }}"
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
with_items:
|
||||
- /srv/web
|
||||
- "/srv/web/{{ inventory_hostname }}"
|
||||
|
@ -21,6 +23,7 @@
|
|||
sefcontext:
|
||||
path: /srv/web(/.*)?
|
||||
setype: httpd_sys_content_t
|
||||
when: ansible_selinux_python_present == true
|
||||
|
||||
- name: create nginx base config
|
||||
template:
|
||||
|
@ -28,7 +31,7 @@
|
|||
dest: /etc/nginx/nginx.conf
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart nginx
|
||||
|
||||
- name: enable nginx service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue