--- - name: Install gpg apt: update_cache: true name: - gpg register: apt_result retries: 3 until: apt_result is succeeded # Add the key - name: Configure the apt key apt_key: url: https://download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Debian_11/Release.key id: 4ABE1AC7557BEFF9 state: present register: apt_key_result retries: 3 until: apt_key_result is succeeded # Add the repository into source list - name: Configure owncloud repository apt_repository: repo: deb http://download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Debian_11/ / state: present - name: Install OwnCloud apt: update_cache: true name: - nginx - owncloud-complete-files - redis-server - php-redis - php-apcu register: apt_result retries: 3 until: apt_result is succeeded - name: Copy NGINX site template: src: nginx/owncloud.j2 dest: /etc/nginx/sites-available/owncloud notify: Restart nginx - name: Activate NGINX site file: src: /etc/nginx/sites-available/owncloud dest: /etc/nginx/sites-enabled/owncloud state: link notify: Restart nginx - name: Copy OwnCloud cron template: src: cron.d/owncloud.j2 dest: /etc/cron.d/owncloud - name: Indicate role in motd template: src: update-motd.d/05-service.j2 dest: /etc/update-motd.d/05-owncloud mode: 0755