Install php dependencies

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2023-07-03 17:16:26 +02:00
parent 91719644db
commit 82e7d6ab4c
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -49,6 +49,7 @@
- php-pgsql # For badges db access
- php-mbstring
- fedora-messaging
- composer
- git
tags:
- packages
@ -76,11 +77,27 @@
repo: https://github.com/fedora-infra/mediawiki-fedora-messaging.git
dest: /usr/share/{{ wikiver }}/extensions/FedoraMessaging
version: stable
register: result_git
tags:
- config
- mediawiki
- fedora-messaging
- name: Create a directory for the php dependencies
file:
path: /srv/web/fp-wiki/extensions/FedoraMessaging/vendor
owner: apache
group: apache
mode: 0755
- name: install the php dependencies
become: yes
become_user: apache
command:
cmd: composer install
chdir: /srv/web/fp-wiki/extensions/FedoraMessaging
when: result_git is changed
- name: Create /etc/pki/fedora-messaging
file:
dest: /etc/pki/fedora-messaging