#SPDX-License-Identifier: MIT-0 --- # tasks file for role-owncloud - name: install nextcloud and dependencies ansible.builtin.package: name: - nextcloud - php-legacy-sodium - php-legacy-imagick - librsvg - php-legacy-igbinary - php-legacy-redis state: present - name: deploy nextcloud php.ini file ansible.builtin.copy: 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