瀏覽代碼

configure php and apache by external roles

master
父節點
當前提交
336f5f7b6e
共有 4 個檔案被更改,包括 10 行新增26 行删除
  1. +0
    -2
      tasks/main.yml
  2. +0
    -8
      tasks/php-opcache.yml
  3. +10
    -9
      tasks/setup_Debian.yml
  4. +0
    -7
      templates/php-opcache.conf.j2

+ 0
- 2
tasks/main.yml 查看文件

@@ -16,8 +16,6 @@

- import_tasks: gpg.yaml

- import_tasks: php-opcache.yml

- import_tasks: reset.yml
when: nextcloud_state == "reinstalled"



+ 0
- 8
tasks/php-opcache.yml 查看文件

@@ -1,8 +0,0 @@

---

- name: enable php opcache
template:
src: php-opcache.conf.j2
dest: /etc/php/{{nextcloud_php_version}}/apache2/conf.d/opcache.ini
notify: restart apache2

+ 10
- 9
tasks/setup_Debian.yml 查看文件

@@ -1,11 +1,18 @@
---


- import_role:
name: apache

- import_role:
name: php
vars:
php_version: "{{nextcloud_php_version}}"
php_configure_opcache: true

- name: install apt packages
apt:
pkg:
- apache2
- php{{nextcloud_php_version}}-cli
- libapache2-mod-php{{nextcloud_php_version}}
- php{{nextcloud_php_version}}-xml
- php{{nextcloud_php_version}}-gd
- php{{nextcloud_php_version}}-json
@@ -22,10 +29,4 @@
- php{{nextcloud_php_version}}-memcached
- libreoffice
- mariadb-client
state: present
notify: restart apache2

- name: remove default page
file:
path: /var/www/html/index.html
state: absent

+ 0
- 7
templates/php-opcache.conf.j2 查看文件

@@ -1,7 +0,0 @@
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

Loading…
取消
儲存