initial ansible code
This commit is contained in:
25
roles/nextcloud/tasks/dependencies.yml
Normal file
25
roles/nextcloud/tasks/dependencies.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- name: Install required system packages
|
||||
apt:
|
||||
name:
|
||||
- python3-pip
|
||||
state: latest
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
|
||||
- name: Install required python packages
|
||||
pip:
|
||||
name: gtar # needed for latest nextcloud tar.bz archive
|
||||
state: latest
|
||||
|
||||
- name: Enable APCu
|
||||
lineinfile:
|
||||
path: /etc/php/{{ php_version }}/cli/conf.d/20-apcu.ini
|
||||
line: apc.enable_cli=1
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: "Add {{ webserver_user }} user to redis group"
|
||||
user:
|
||||
name: "{{ webserver_user }}"
|
||||
groups: redis
|
||||
append: true
|
||||
Reference in New Issue
Block a user