7c632352a0
The behaviour of the `include` module is badly defined (it try to choose between statically importing the tasks and dynamically including them) and can cause problems depending on any number of constraints (mostly if it choose the wrong behaviour). Replace it with the `import_tasks` (always statically import tasks) unless the `include` is in a loop in which case we replace it with `include_tasks` (always dynamically include tasks).
57 lines
1 KiB
YAML
57 lines
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 - python2
|
|
- 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 - python3
|
|
- name: python3 modules is installed (Ansible dependency)
|
|
apt:
|
|
name:
|
|
- python3-mysqldb
|
|
- python3-pymysql
|
|
state: present
|
|
tags:
|
|
- nextcloud
|
|
when: ansible_python_version is version('3', '>=')
|
|
|
|
- import_tasks: apache-system.yml
|
|
|
|
- import_tasks: user.yml
|
|
|
|
- import_tasks: archive.yml
|
|
|
|
- import_tasks: apache-vhost.yml
|
|
|
|
- import_tasks: mysql-user.yml
|
|
|
|
- import_tasks: config.yml
|