--- - 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"}