correction syntaxe
[lhc/ansible.git] / tasks / config_WP.yml
1 - name: Etckeeper commit if necessary
2 ansible.builtin.command: etckeeper commit "commit by ansible because installing {{ DOMAIN }}/{{ SITE }}"
3
4 - name: Install required packages
5 ansible.builtin.apt:
6 name:
7 - ghostscript
8 - php
9 - php-mysqli
10 - php-curl
11 # - php-dom
12 - php-exif
13 - php-igbinary
14 - php-mbstring
15 - imagemagick
16 - php-imagick
17 - php-intl
18 - php-openssl
19 - libxml
20 - php-xml
21 - libzip
22 - php-zip
23 - php-redis
24 state: present
25 register: php_install
26
27 - name: Enable PHP modules
28 ansible.builtin.command: phpenmod imagick intl
29 when: php_install.changed
30
31
32 - name: Recharger PHP et nginx
33 ansible.builtin.service:
34 name: "{{ item }}"
35 state: reloaded
36 loop:
37 - "php{{ php_version }}-fpm"
38 - "nginx"