ansible-roles/webapps/nextcloud/tasks/main.yml
Ludovic Poujol d165a104f2
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
* webapps/nextcloud: Add missing dependencies for imagick
2022-09-01 11:28:08 +02:00

62 lines
1.1 KiB
YAML

---
- name: Install dependencies
apt:
state: present
name:
- bzip2
- php-gd
- php-json
- php-xml
- php-mbstring
- php-zip
- php-curl
- php-bz2
- php-intl
- php-gmp
- php-apcu
- php-redis
- php-bcmath
- php-imagick
- libmagickcore-6.q16-6-extra
tags:
- nextcloud
# dependency for mysql_user and mysql_db
- name: python modules is installed (Ansible dependency)
apt:
name:
- python-mysqldb
- python-pymysql
state: present
tags:
- nextcloud
when: ansible_python_version is version('3', '<')
# dependency for mysql_user and mysql_db
- name: python3 modules is installed (Ansible dependency)
apt:
name:
- python3-mysqldb
- python3-pymysql
state: present
tags:
- nextcloud
when: ansible_python_version is version('3', '>=')
- include: user.yml
- include: archive.yml
- name: Check if Apache or Nginx
service_facts:
- include: vhost-nginx.yml
when: "'nginx.service' in services"
- include: vhost-apache.yml
when: "'apache2.service' in services"
- include: mysql.yml
- include: config.yml