X-Git-Url: http://git.cyclocoop.org//%22%22.url_absolue%28chemin_image%28%22searching.gif%22%29%29.%22/%22?a=blobdiff_plain;f=tasks%2Fconfig_WP.yml;fp=tasks%2Fconfig_WP.yml;h=cee9b66d7499618167cc54c22a6cca5dcf6749b4;hb=d2ef9c4c99e81dc58f3d4346c362eae2c4d7915b;hp=0000000000000000000000000000000000000000;hpb=058c0e0c1ce6fc1fb225fceb18cc8898f9a2a063;p=lhc%2Fansible.git diff --git a/tasks/config_WP.yml b/tasks/config_WP.yml new file mode 100644 index 0000000..cee9b66 --- /dev/null +++ b/tasks/config_WP.yml @@ -0,0 +1,38 @@ +- name: Etckeeper commit if necessary + ansible.builtin.command: etckeeper commit "commit by ansible because installing {{ DOMAIN }}/{{ SITE }}" + +- name: Install required packages + ansible.builtin.apt: + name: + - ghostscript + - php + - php-mysqli + - php-curl +# - php-dom + - php-exif + - php-igbinary + - php-mbstring + - imagemagick + - php-imagick + - php-intl + - php-openssl + - libxml + - php-xml + - libzip + - php-zip + - php-redis + state: present + register: php_install + +- name: Enable PHP modules + ansible.builtin.command: phpenmod imagick intl + when: php_install.changed + + +- name: Recharger PHP et nginx + ansible.builtin.service: + name: "{{ item }}" + state: reloaded + loop: + - "php{{ php_version }}-fpm" + - "nginx"