1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Ansible_Project/roles/php/tasks/main.yml

40 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-05-02 17:37:08 +02:00
---
- name: "Install dependencies"
ansible.builtin.apt:
name:
- php7.4-fpm
- php7.4-common
- php7.4-curl
- php7.4-intl
- php7.4-mbstring
- php7.4-xmlrpc
- php7.4-mysql
- php7.4-gd
- php7.4-xml
- php7.4-cli
- php7.4-zip
- imagemagick
- php-imagick
- php7.4-bz2
- php7.4-bcmath
- php7.4-gmp
- composer
update_cache: true
cache_valid_time: 86400
- name: "Edit php config"
ini_file:
path: "/etc/php/7.4/fpm/php.ini"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
create: false
loop:
- {section: "PHP", option: "file_uploads", value: "On"}
- {section: "PHP", option: "allow_url_fopen", value: "On"}
- {section: "PHP", option: "short_open_tag", value: "On"}
- {section: "PHP", option: "memory_limit", value: "256M"}
- {section: "PHP", option: "upload_max_filesize", value: "100M"}
- {section: "PHP", option: "max_execution_time", value: "60"}
- {section: "Date", option: "date.timezone", value: "Europe/Paris"}