mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 19:30:18 +01:00
Removed unused roles and update vars
This commit is contained in:
parent
0d99f1ee04
commit
695801d26d
5 changed files with 4 additions and 42 deletions
|
@ -31,7 +31,9 @@ core_update_level: true
|
|||
php_enablerepo: "remi-php70"
|
||||
|
||||
# PHP-FPM configuration.
|
||||
php_enable_php_fpm: fals
|
||||
php_enable_php_fpm: true
|
||||
|
||||
php_apc_shm_size: "96M"
|
||||
php_date_timezone: "Australia/Melbourne"
|
||||
|
||||
php_webserver_daemon: "nginx"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
- name: restart php-fpm
|
||||
service: name=php-fpm state=restarted
|
|
@ -1,22 +0,0 @@
|
|||
---
|
||||
- name: Install php-fpm and deps
|
||||
yum: name={{ item }} state=present
|
||||
with_items:
|
||||
- php
|
||||
- php-enchant
|
||||
- php-IDNA_Convert
|
||||
- php-mbstring
|
||||
- php-mysql
|
||||
- php-PHPMailer
|
||||
- php-xml
|
||||
- php-gd
|
||||
- php-pecl-uploadprogress
|
||||
- php-pecl-opcache
|
||||
|
||||
- name: Disable default pool
|
||||
command: mv /etc/php-fpm.d/www.conf /etc/php-fpm.d/www.disabled creates=/etc/php-fpm.d/www.disabled
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: Copy php-fpm configuration
|
||||
template: src=wordpress.conf dest=/etc/php-fpm.d/
|
||||
notify: restart php-fpm
|
|
@ -1,15 +0,0 @@
|
|||
[wordpress]
|
||||
listen = /var/run/php-fpm/wordpress.sock
|
||||
listen.owner = nginx
|
||||
listen.group = nginx
|
||||
listen.mode = 0660
|
||||
user = wordpress
|
||||
group = wordpress
|
||||
pm = dynamic
|
||||
pm.max_children = 10
|
||||
pm.start_servers = 1
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
pm.max_requests = 500
|
||||
chdir = /srv/wordpress/
|
||||
php_admin_value[open_basedir] = /srv/wordpress/:/tmp
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Install WordPress, MariaDB, Nginx, and PHP-FPM
|
||||
- name: MariaDB, Nginx, and PHP-FPM
|
||||
hosts: lemp-server
|
||||
remote_user: root
|
||||
# remote_user: user
|
||||
|
|
Loading…
Reference in a new issue