owncloud
Role to setup ownCloud server. Clustered mode is currently not supported.
- Default Variables
- owncloud_admin_password
- owncloud_admin_username
- owncloud_allow_user_to_change_display_name
- owncloud_apcu_enabled
- owncloud_app_documents_enabled
- owncloud_app_documents_provider
- owncloud_app_group
- owncloud_apps
- owncloud_apps_config
- owncloud_apps_deprecated
- owncloud_apt_cache_update
- owncloud_autosetup
- owncloud_config_extra
- owncloud_config_path
- owncloud_cors_allowed_domains
- owncloud_cron_backend
- owncloud_cron_jobs
- owncloud_csrf_enabled
- owncloud_data_path
- owncloud_db_host
- owncloud_db_name
- owncloud_db_password
- owncloud_db_tableprefix
- owncloud_db_type
- owncloud_db_user
- owncloud_default_app
- owncloud_download_url
- owncloud_enable_avatars
- owncloud_encryption_enabled
- owncloud_encryption_force_encrypt_all
- owncloud_federation_allow_incoming_server2server_share
- owncloud_federation_allow_outgoing_server2server_share
- owncloud_federation_auto_accept_trusted
- owncloud_federation_auto_add_servers
- owncloud_fqdn
- owncloud_install_from_filesystem
- owncloud_integrity_ignore_missing_app_signature
- owncloud_knowledgebase_enabled
- owncloud_log_cron
- owncloud_log_dateformat
- owncloud_log_file
- owncloud_log_level
- owncloud_log_rotate_size
- owncloud_log_timezone
- owncloud_log_type
- owncloud_login_alternatives
- owncloud_mail_smtp_auth_enabled
- owncloud_medial_search_accounts_enabled
- owncloud_occ_executable
- owncloud_packages_extra
- owncloud_password_force_change_on_first_login
- owncloud_redis_enabled
- owncloud_redis_host
- owncloud_redis_port
- owncloud_release_channel
- owncloud_remember_login_cookie_lifetime
- owncloud_search_min_length
- owncloud_session_keepalive_enabled
- owncloud_session_lifetime
- owncloud_setup_run_once
- owncloud_share_api_allow_group_sharing
- owncloud_share_api_allow_links
- owncloud_share_api_allow_mail_notification
- owncloud_share_api_allow_public_notification
- owncloud_share_api_allow_public_upload
- owncloud_share_api_allow_resharing
- owncloud_share_api_allow_share_dialog_user_enumeration
- owncloud_share_api_allow_social_share
- owncloud_share_api_auto_accept_share
- owncloud_share_api_default_expire_date
- owncloud_share_api_enabled
- owncloud_share_api_enforce_expire_date
- owncloud_share_api_enforce_password_links_read_only
- owncloud_share_api_enforce_password_links_read_write
- owncloud_share_api_enforce_password_links_write_only
- owncloud_share_api_expire_after_n_days
- owncloud_share_api_only_share_with_group_members
- owncloud_share_api_only_share_with_membership_groups
- owncloud_share_api_share_dialog_user_enumeration_group_members
- owncloud_show_server_hostname
- owncloud_skeleton_path
- owncloud_src_path
- owncloud_syslog_log_format
- owncloud_syslog_tag
- owncloud_system_group
- owncloud_system_user
- owncloud_system_user_comment
- owncloud_system_user_home
- owncloud_system_user_shell
- owncloud_token_auth_enforced
- owncloud_trusted_domains
- owncloud_upgrade_3party_app_disable
- owncloud_upgrade_migration_test
- owncloud_version
- owncloud_version_hide
- owncloud_web_default_language
- Dependencies
owncloud_admin_password: owncloud
owncloud_admin_username: admin
owncloud_allow_user_to_change_display_name: true
owncloud_apcu_enabled: true
owncloud_app_documents_enabled: false
owncloud_app_documents_provider: onlyoffice
owncloud_app_group: '{{ owncloud_system_group }}'
owncloud_apps:
- name: twofactor_totp
- name: password_policy
owncloud_apps:
- name: contacts
- name: http://market.owncloud.local/carnet-0.16.2.tar.gz
from_url: yes
url_username: my_user
url_password:my_password
force_basic_auth: true
state: present
- name: unwanted_app
enabled: false
Manages ownCloud system and app configuration. The name attribute holds the name of the app which is either system
or <app_name>
. The attribute
in the parameters dictionary hold the attribute of the app and value
the new value to set.
owncloud_apps_config: []
owncloud_apps_config:
- name: files
parameters:
- attribute: default_quota
value: "0 B"
To disable deprecated apps before a version upgrade we are introducing this new env variables. This way the admin can control which app gets properly disabled before an upgrade gets applies.
owncloud_apps_deprecated: []
Automatically update apt cache on package installations. This setting will only applied on apt-based operating systems e.g. Ubuntu.
owncloud_apt_cache_update: false
owncloud_autosetup: true
For availabe configuration options see: documentation For nested values YAML dictionaries need to be used, see example for an OpenID Connect configuration below.
owncloud_config_extra: {}
owncloud_config_extra:
- http.cookie.samesite: "None"
- openid-connect:
auto-provision:
enabled: true
email-claim: "email"
display-name-claim: "name"
provider-url: "https://example.com"
client-id: "myclientid"
client-secret: "mysecret"
autoRedirectOnLoginPage: false
mode: "email"
scopes: []
use-access-token-payload-for-user-info: false
owncloud_config_path: '{{ owncloud_src_path }}/config'
owncloud_cors_allowed_domains: []
Possible values are webcron|cron|ajax
. See the documentation documentation for details.
owncloud_cron_backend: cron
Will be applied only if owncloud_cron_backend
is set to cron
. All cronjobs are written to a single crontab /etc/cron.d/owncloud
.
owncloud_cron_jobs:
- name: oc cron
job: '{{ owncloud_occ_executable }} system:cron'
minute: '*/15'
- name: occ cleanup chunks
job: '{{ owncloud_occ_executable }} dav:cleanup-chunks'
minute: '0'
hour: '2'
Be careful! See documentation
owncloud_csrf_enabled: true
owncloud_data_path: '{{ owncloud_src_path }}/data'
owncloud_db_host: localhost
owncloud_db_name: owncloud
owncloud_db_password: owncloud
owncloud_db_tableprefix: oc_
owncloud_db_type: mysql
owncloud_db_user: owncloud
owncloud_default_app: files
You can set a custom download url especialy for the enterprise version.
owncloud_download_url: https://download.owncloud.com/server/stable/owncloud-{{ owncloud_version
}}.tar.bz2
owncloud_enable_avatars: true
Only supported for ownCloud >= 10.2.1
owncloud_encryption_enabled: false
owncloud_encryption_force_encrypt_all: false
owncloud_federation_allow_incoming_server2server_share: true
owncloud_federation_allow_outgoing_server2server_share: true
owncloud_federation_auto_accept_trusted: false
owncloud_federation_auto_add_servers: false
owncloud_fqdn: owncloud.example.com
owncloud_install_from_filesystem: false
owncloud_install_from_filesystem: True
owncloud_download_url: /tmp/owncloud-10.3.1.tar.bz2
owncloud_integrity_ignore_missing_app_signature: []
owncloud_knowledgebase_enabled: true
owncloud_log_cron: true
owncloud_log_dateformat: Y-m-d H:i:s.u
owncloud_log_file: '{{ owncloud_data_path }}/owncloud.log'
owncloud_log_level: 2
Log rotate file size in bytes See documentation
owncloud_log_rotate_size: 0
owncloud_log_timezone: Etc/UTC
owncloud_log_type: owncloud
Allows to specify additional login buttons on the logon screen (e.g. SSO)
owncloud_login_alternatives: []
owncloud_mail_smtp_auth_enabled: false
owncloud_medial_search_accounts_enabled: true
owncloud_occ_executable: /usr/local/bin/occ
owncloud_packages_extra: []
owncloud_password_force_change_on_first_login: false
owncloud_redis_enabled: true
owncloud_redis_host: 127.0.0.1
owncloud_redis_port: 6379
owncloud_release_channel: production
owncloud_remember_login_cookie_lifetime: 1296000
owncloud_search_min_length: 3
owncloud_session_keepalive_enabled: true
owncloud_session_lifetime: 86400
Run the occ setup command only once on the first host of the group. This setting is only required for cluster setups. If you want to install multiple standalone instances with the same play set it to False
.
owncloud_setup_run_once: true
owncloud_share_api_allow_group_sharing: false
owncloud_share_api_allow_links: true
owncloud_share_api_allow_mail_notification: true
owncloud_share_api_allow_public_notification: false
owncloud_share_api_allow_public_upload: true
owncloud_share_api_allow_resharing: true
owncloud_share_api_allow_share_dialog_user_enumeration: true
owncloud_share_api_allow_social_share: true
owncloud_share_api_auto_accept_share: false
owncloud_share_api_default_expire_date: true
owncloud_share_api_enabled: true
owncloud_share_api_enforce_expire_date: false
owncloud_share_api_enforce_password_links_read_only: false
owncloud_share_api_enforce_password_links_read_write: false
owncloud_share_api_enforce_password_links_write_only: false
owncloud_share_api_expire_after_n_days: 7
owncloud_share_api_only_share_with_group_members: false
owncloud_share_api_only_share_with_membership_groups: false
owncloud_share_api_share_dialog_user_enumeration_group_members: false
owncloud_show_server_hostname: false
owncloud_skeleton_path: '{{ owncloud_deploy_path }}/core/skeleton'
owncloud_src_path: /usr/local/src/{{ owncloud_system_user }}
owncloud_syslog_log_format: '[%reqId%][%remoteAddr%][%user%][%app%][%method%][%url%]
%message%'
owncloud_syslog_tag: ownCloud
owncloud_system_group: owncloud
owncloud_system_user: owncloud
owncloud_system_user_comment: Owncloud Application Manager
owncloud_system_user_home: /var/local/{{ owncloud_system_user }}
owncloud_system_user_shell: /usr/sbin/nologin
owncloud_token_auth_enforced: false
owncloud_trusted_domains:
- '{{ owncloud_fqdn }}'
owncloud_upgrade_3party_app_disable: true
owncloud_upgrade_migration_test: true
owncloud_version: 10.9.0
owncloud_version_hide: true
owncloud_web_default_language: en_US
None.