added file deployment
This commit is contained in:
parent
86d5abbf63
commit
8f83861ef7
1 changed files with 40 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
|||
- php-legacy-sodium
|
||||
- php-legacy-imagick
|
||||
- librsvg
|
||||
- php-legacy-igbinary
|
||||
- php-legacy-redis
|
||||
state: present
|
||||
|
||||
- name: deploy nextcloud php.ini file
|
||||
|
@ -15,10 +17,47 @@
|
|||
src: files/nextcloud-php.ini
|
||||
dest: /etc/webapps/nextcloud/php.ini
|
||||
|
||||
# determine how to handle /etc/webapps/nextcloud/config/config.php - it contains passwords. Probably just a symlink to the file
|
||||
|
||||
- name: Create sessions directory
|
||||
ansible.builtin.file:
|
||||
path: /var/lib/nextcloud/sessions
|
||||
state: directory
|
||||
owner: nextcloud
|
||||
group: nextcloud
|
||||
mode: '0700'
|
||||
|
||||
- name: deploy php-fpm.ini
|
||||
ansible.builtin.copy:
|
||||
src: files/php-fpm.ini
|
||||
dest: /etc/php-legacy/php-fpm.ini
|
||||
|
||||
- name: deploy fpm-nextcloud.conf
|
||||
ansible.builtin.copy:
|
||||
src: files/fpm-nextcloud.conf
|
||||
dest: /etc/php-legacy/php-fpm.d/nextcloud.conf
|
||||
|
||||
- name: deploy php-fpm systemd override
|
||||
ansible.builtin.copy:
|
||||
src: files/php-fpm-override.conf
|
||||
dest: /etc/systemd/system/php-fpm-legacy.service.d/override.conf
|
||||
#notify php-fpm-legacy
|
||||
|
||||
- name: deploy nextcloud nginx file
|
||||
ansible.builtin.copy:
|
||||
src: files/nginx-nextcloud.conf
|
||||
dest: /etc/nginx/conf.d/nextcloud.conf
|
||||
#notify nginx
|
||||
|
||||
- name: deploy nextcloud cron override
|
||||
ansible.builtin.copy:
|
||||
src: files/nextcloud-cron-override.conf
|
||||
dest: /etc/systemd/system/nextcloud-cron.service.d/override.conf
|
||||
|
||||
#- name: ensure nextcloud is running
|
||||
# service:
|
||||
# name: nextcloud
|
||||
# state: started
|
||||
# enabled: yes
|
||||
|
||||
# start/enable php-fpm-legacy
|
Loading…
Add table
Reference in a new issue