{"id":19529843,"url":"https://github.com/yayuniversal/nextcloud-ansible-role","last_synced_at":"2026-05-08T04:13:42.768Z","repository":{"id":186345277,"uuid":"655937629","full_name":"yayuniversal/nextcloud-ansible-role","owner":"yayuniversal","description":"Ansible role to install and configure Nextcloud","archived":false,"fork":false,"pushed_at":"2024-02-28T04:26:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T02:43:02.206Z","etag":null,"topics":["ansible","ansible-role","nextcloud","nextcloud-installation","nextcloud-server"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yayuniversal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-20T00:02:25.000Z","updated_at":"2023-06-20T00:10:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b41fec7-bd7e-4739-a122-bfcc863df82c","html_url":"https://github.com/yayuniversal/nextcloud-ansible-role","commit_stats":null,"previous_names":["lilianmallardeau/nextcloud-ansible-role","yayuniversal/nextcloud-ansible-role"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yayuniversal/nextcloud-ansible-role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fnextcloud-ansible-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fnextcloud-ansible-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fnextcloud-ansible-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fnextcloud-ansible-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yayuniversal","download_url":"https://codeload.github.com/yayuniversal/nextcloud-ansible-role/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2Fnextcloud-ansible-role/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268541914,"owners_count":24266798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","nextcloud","nextcloud-installation","nextcloud-server"],"created_at":"2024-11-11T01:27:52.207Z","updated_at":"2026-05-08T04:13:37.741Z","avatar_url":"https://github.com/yayuniversal.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nextcloud Ansible role\n======================\n\nAn Ansible role to install and configure Nextcloud, with Apache and PostgreSQL. Works on Debian-based distributions.\n\nRequirements\n------------\n\nThis role doesn't add, manage or configure SSL certificates for Apache. If you choose to enable SSL (you should), Apache should be configured appart from this role to use the right SSL certificate. I made this choice to be able to manage everything related to SSL certs in another separate configuration file.\n\nRole Variables\n--------------\n\nAll the variables for the role are described below along with their default values.\n\n- Database configuration: database name, username and password\n```yaml\nnextcloud_database_name: nextcloud\nnextcloud_database_username: nextcloud\nnextcloud_database_password: nextcloud\n```\n\n- Credentials for the default admin account\n```yaml\nnextcloud_admin_username: admin\nnextcloud_admin_password: nextcloud\n```\n\n- Download URL for Nextcloud, checksum, and temporary download path\n```yaml\nnextcloud_download_url: https://download.nextcloud.com/server/releases/latest.tar.bz2\nnextcloud_checksum_url: \"sha256:{{ nextcloud_download_url }}.sha256\"\nnextcloud_download_path: /tmp/nextcloud.tar.bz2\n```\n\n- Nextcloud domain name\n```yaml\nnextcloud_domain_name: nextcloud.local\n```\n\n- Webserver document root, to extract the nextcloud folder into.\n```yaml\nnextcloud_www_folder: /var/www\n```\nDo **not** append `/nextcloud` at the end. The `nextcloud` folder will be created *inside* this directory. Here, the document root for nextcloud will be `/var/www/nextcloud`.\n\n- SSL/HTTPS settings\n```yaml\nnextcloud_enable_ssl: no\nnextcloud_enable_hsts: yes\n```\n\n- PHP settings\n```yaml\nnextcloud_php_memory_limit: 1G\nnextcloud_php_opcache_strings_buffer: 16\nnextcloud_php_opcache_revalidate_freq: 2\nnextcloud_php_opcache_enable_jit: no\n```\n\n- Nextcloud configuration\n```yaml\n# Data directory for Nextcloud\nnextcloud_data_directory: \"/var/www/nextcloud/data\"\n\n# Trusted domains\nnextcloud_trusted_domains: [\"{{ nextcloud_domain_name }}\"]\n\n# Default phone region (ISO 3166-1 country codes)\nnextcloud_default_phone_region:\n\n# Install Calendar, Contacts, Mail, Nextcloud Office, Notes and Talk\nnextcloud_install_recommended_apps: yes\n\n# Install Tasks, Deck, Forms, Group folders and Recognize\nnextcloud_install_suggested_apps: no\n\n# Other additionnal apps to install\nnextcloud_apps: []\n```\n\nDependencies\n------------\n\nNone\n\nExample Playbook\n----------------\n\n```yaml\n- hosts: servers\n  roles:\n    - role: nextcloud\n      vars:\n        nextcloud_database_name: nextcloud\n        nextcloud_database_username: nextcloud\n        nextcloud_database_password: \u003cdatabase_password\u003e\n        nextcloud_data_directory: /data/nextcloud\n        nextcloud_php_memory_limit: 2G\n        nextcloud_domain_name: \"mynextcloud.example.com\"\n        nextcloud_default_phone_region: FR\n```\n\nLicense\n-------\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyayuniversal%2Fnextcloud-ansible-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyayuniversal%2Fnextcloud-ansible-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyayuniversal%2Fnextcloud-ansible-role/lists"}