mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-08 19:00:18 +01:00
Added vmuser user and updated vars for nginx vhost directory.
This commit is contained in:
parent
1ca8e1d6ad
commit
ad2bc80ebe
3 changed files with 7 additions and 4 deletions
|
@ -57,7 +57,7 @@ php_enablerepo: "remi-php70"
|
|||
|
||||
# PHP-FPM configuration.
|
||||
php_enable_php_fpm: true
|
||||
php_fpm_pool_user: nginx
|
||||
php_fpm_pool_user: vmuser
|
||||
php_fpm_pool_group: nginx
|
||||
|
||||
php_apc_shm_size: "128M"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
- reload nginx
|
||||
|
||||
- name: Creates Nginx vhost directory
|
||||
file: path=/var/www/html/{{ server_hostname }} state=directory owner={{ nginx_user }} group={{ nginx_user }} mode=0775 recurse=yes
|
||||
file: path=/var/www/html/{{ server_hostname }} state=directory owner={{ php_fpm_pool_user }} group={{ php_fpm_pool_group }} mode=0755 recurse=yes
|
||||
when: nginx_vhosts|length > 0
|
||||
notify:
|
||||
- reload nginx
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Copy the NGINX repository definition
|
||||
copy: src=nginx.repo dest=/etc/yum.repos.d/
|
||||
|
||||
|
||||
- name: Copy the EPEL repository definition
|
||||
copy: src=epel.repo dest=/etc/yum.repos.d/
|
||||
|
||||
|
@ -9,4 +9,7 @@
|
|||
copy: src=RPM-GPG-KEY-NGINX dest=/etc/pki/rpm-gpg
|
||||
|
||||
- name: Create the GPG key for EPEL
|
||||
copy: src=RPM-GPG-KEY-EPEL-7 dest=/etc/pki/rpm-gpg
|
||||
copy: src=RPM-GPG-KEY-EPEL-7 dest=/etc/pki/rpm-gpg
|
||||
|
||||
- name: Creates vmuser user
|
||||
user: name=vmuser comment=DefaultUser groups=vmuser,wheel shell=/bin/bash createhome=yes
|
||||
|
|
Loading…
Reference in a new issue