ansible-roles/webapps/nextcloud/tasks/main.yml

59 lines
1.2 KiB
YAML
Raw Normal View History

2020-10-02 16:51:05 +02:00
---
- name: Install dependencies
ansible.builtin.apt:
2020-10-02 16:51:05 +02:00
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 - python2
2021-09-29 18:39:29 +02:00
- name: python modules is installed (Ansible dependency)
ansible.builtin.apt:
2021-09-29 18:39:29 +02:00
name:
- python-mysqldb
- python-pymysql
state: present
tags:
- nextcloud
when: ansible_python_version is version('3', '<')
# dependency for mysql_user and mysql_db - python3
2021-09-29 18:39:29 +02:00
- name: python3 modules is installed (Ansible dependency)
ansible.builtin.apt:
2021-09-29 18:39:29 +02:00
name:
- python3-mysqldb
- python3-pymysql
state: present
2020-10-02 16:51:05 +02:00
tags:
- nextcloud
when: ansible_python_version is version('3', '>=')
2020-10-02 16:51:05 +02:00
- ansible.builtin.include: apache-system.yml
- ansible.builtin.include: user.yml
2020-10-02 16:51:05 +02:00
- ansible.builtin.include: archive.yml
when: nextcloud_get_archive
2020-10-02 16:51:05 +02:00
- ansible.builtin.include: apache-vhost.yml
2020-10-02 16:51:05 +02:00
- ansible.builtin.include: mysql-user.yml
2020-10-02 16:51:05 +02:00
- ansible.builtin.include: config.yml
when: nextcloud_do_config