going back to php 7.4

master
rosario polito 2 years ago
parent 87eee41edb
commit 32d20dd387
  1. 2
      hosts
  2. 37
      tasks/shopware.yml

@ -1,2 +1,2 @@
[home] [home]
swserver ansible_host=192.168.0.223 ansible_user=rpolito ansible_connection=ssh ansible_ssh_private_key_file=/home/rpolito/.ssh/id_rsa swserver ansible_host=192.168.0.216 ansible_user=rpolito ansible_connection=ssh ansible_ssh_private_key_file=/home/rpolito/.ssh/id_rsa

@ -1,19 +1,24 @@
- name: apt_repository
apt_repository:
repo: ppa:ondrej/php
- name: Shopware Dependencies - name: Shopware Dependencies
package: package:
name: name:
- unzip - unzip
- nginx - nginx
- php8.0 - php7.4
- php8.0-mysql - php7.4-mysql
- php8.0-json - php7.4-fpm
- php8.0-curl - php7.4-json
- php8.0-gd - php7.4-curl
- php8.0-xml - php7.4-gd
- php8.0-zip - php7.4-xml
- php8.0-opcache - php7.4-zip
- php8.0-mbstring - php7.4-opcache
- php8.0-intl - php7.4-mbstring
- php8.0-cli - php7.4-intl
- php7.4-cli
- mariadb-server - mariadb-server
- python3-pymysql - python3-pymysql
state: latest state: latest
@ -72,30 +77,30 @@
#configure php #configure php
- name: Setting PHP memory limit - name: Setting PHP memory limit
lineinfile: lineinfile:
dest: /etc/php/8.0/fpm/php.ini dest: /etc/php/7.4/fpm/php.ini
regexp: "^memory_limit = 128M$" regexp: "^memory_limit = 128M$"
line: "memory_limit = 512M" line: "memory_limit = 512M"
- name: Setting PHP POST MAX SIZE - name: Setting PHP POST MAX SIZE
lineinfile: lineinfile:
dest: /etc/php/8.0/fpm/php.ini dest: /etc/php/7.4/fpm/php.ini
regexp: "^post_max_size = 8M$" regexp: "^post_max_size = 8M$"
line: "post_max_size = 32M" line: "post_max_size = 32M"
- name: Setting Upload Max Filesize - name: Setting Upload Max Filesize
lineinfile: lineinfile:
dest: /etc/php/8.0/fpm/php.ini dest: /etc/php/7.4/fpm/php.ini
regexp: "^upload_max_filesize = 2M$" regexp: "^upload_max_filesize = 2M$"
line: "upload_max_filesize = 32M" line: "upload_max_filesize = 32M"
- name: Restart php 8 - name: Restart php 8
ansible.builtin.service: ansible.builtin.service:
name: php8.0-fpm name: php7.4-fpm
state: restarted state: restarted
- name: Make sure service is started and enabled - name: Make sure service is started and enabled
systemd: systemd:
name: php8.0-fpm name: php7.4-fpm
state: started state: started
enabled: yes enabled: yes

Loading…
Cancel
Save