1
0
mirror of https://github.com/geerlingguy/ansible-for-devops.git synced 2024-05-19 06:50:03 +00:00

Change PHP version to 8.2 and Drush to 11*

This commit is contained in:
Maxat Akbanov
2023-02-11 13:58:13 +06:00
parent 814d4e948c
commit 51cd5945f1

View File

@ -34,20 +34,19 @@
- unzip - unzip
- sendmail - sendmail
- apache2 - apache2
- php7.4-common - php8.2-common
- php7.4-cli - php8.2-cli
- php7.4-dev - php8.2-dev
- php7.4-gd - php8.2-gd
- php7.4-curl - php8.2-curl
- php7.4-json - php8.2-opcache
- php7.4-opcache - php8.2-xml
- php7.4-xml - php8.2-mbstring
- php7.4-mbstring - php8.2-pdo
- php7.4-pdo - php8.2-mysql
- php7.4-mysql - php8.2-apcu
- php7.4-apcu
- libpcre3-dev - libpcre3-dev
- libapache2-mod-php7.4 - libapache2-mod-php8.2
- python3-mysqldb - python3-mysqldb
- mysql-server - mysql-server
@ -87,7 +86,7 @@
- name: Adjust OpCache memory setting. - name: Adjust OpCache memory setting.
lineinfile: lineinfile:
dest: "/etc/php/7.4/apache2/conf.d/10-opcache.ini" dest: "/etc/php/8.2/apache2/conf.d/10-opcache.ini"
regexp: "^opcache.memory_consumption" regexp: "^opcache.memory_consumption"
line: "opcache.memory_consumption = 96" line: "opcache.memory_consumption = 96"
state: present state: present
@ -145,7 +144,7 @@
- name: Add drush to the Drupal site with Composer. - name: Add drush to the Drupal site with Composer.
composer: composer:
command: require command: require
arguments: drush/drush:10.* arguments: drush/drush:11.*
working_dir: "{{ drupal_core_path }}" working_dir: "{{ drupal_core_path }}"
become_user: www-data become_user: www-data
when: not drupal_composer_json.stat.exists when: not drupal_composer_json.stat.exists