1
0

main.yml 639 B

123456789101112131415161718192021222324
  1. ---
  2. # Remarque : php 8.2 pour Debian Bookworm
  3. - name: Installer PHP et extensions pour WordPress
  4. ansible.builtin.apt:
  5. name:
  6. - php8.2
  7. - php8.2-fpm
  8. - php8.2-phar # for wp-cli
  9. - php8.2-curl # for wp-cli
  10. - php8.2-mysqli # for WordPress/MySQL
  11. - php8.2-iconv # for WordPress
  12. - php8.2-gd # for WordPress
  13. - php8.2-imagick
  14. - php8.2-intl
  15. - php8.2-mbstring
  16. - php8.2-zip
  17. - php8.2-dom
  18. state: present
  19. - name: Mettre en place une configuration PHP personnalisée
  20. ansible.builtin.template:
  21. src: php.ini.j2
  22. dest: /etc/php/8.2/fpm/php.ini
  23. notify: restart php-fpm