Ansible
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

owncloud

Source Code Build Status GitHub

Role to setup ownCloud server. Clustered mode is currently not supported.


Default Variables

owncloud_admin_password

Default value

owncloud_admin_password: owncloud

owncloud_admin_username

Default value

owncloud_admin_username: admin

owncloud_allow_user_to_change_display_name

Default value

owncloud_allow_user_to_change_display_name: true

owncloud_apcu_enabled

Default value

owncloud_apcu_enabled: true

owncloud_app_documents_enabled

Default value

owncloud_app_documents_enabled: false

owncloud_app_documents_provider

Default value

owncloud_app_documents_provider: onlyoffice

owncloud_app_group

Default value

owncloud_app_group: '{{ owncloud_system_group }}'

owncloud_apps

Default value

owncloud_apps:
  - name: twofactor_totp
  - name: password_policy

Example usage

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

owncloud_apps_config

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.

Default value

owncloud_apps_config: []

Example usage

owncloud_apps_config:
  - name: files
    parameters:
      - attribute: default_quota
        value: "0 B"

owncloud_apps_deprecated

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.

Default value

owncloud_apps_deprecated: []

owncloud_apt_cache_update

Automatically update apt cache on package installations. This setting will only applied on apt-based operating systems e.g. Ubuntu.

Default value

owncloud_apt_cache_update: false

owncloud_autosetup

Default value

owncloud_autosetup: true

owncloud_config_extra

For availabe configuration options see: documentation For nested values YAML dictionaries need to be used, see example for an OpenID Connect configuration below.

Default value

owncloud_config_extra: {}

Example usage

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

Default value

owncloud_config_path: '{{ owncloud_src_path }}/config'

owncloud_cors_allowed_domains

Default value

owncloud_cors_allowed_domains: []

owncloud_cron_backend

Possible values are webcron|cron|ajax. See the documentation documentation for details.

Default value

owncloud_cron_backend: cron

owncloud_cron_jobs

Will be applied only if owncloud_cron_backend is set to cron. All cronjobs are written to a single crontab /etc/cron.d/owncloud.

Default value

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'

owncloud_csrf_enabled

Be careful! See documentation

Default value

owncloud_csrf_enabled: true

owncloud_data_path

Default value

owncloud_data_path: '{{ owncloud_src_path }}/data'

owncloud_db_host

Default value

owncloud_db_host: localhost

owncloud_db_name

Default value

owncloud_db_name: owncloud

owncloud_db_password

Default value

owncloud_db_password: owncloud

owncloud_db_tableprefix

Default value

owncloud_db_tableprefix: oc_

owncloud_db_type

Default value

owncloud_db_type: mysql

owncloud_db_user

Default value

owncloud_db_user: owncloud

owncloud_default_app

Default value

owncloud_default_app: files

owncloud_download_url

You can set a custom download url especialy for the enterprise version.

Default value

owncloud_download_url: https://download.owncloud.com/server/stable/owncloud-{{ owncloud_version
  }}.tar.bz2

owncloud_enable_avatars

Default value

owncloud_enable_avatars: true

owncloud_encryption_enabled

Only supported for ownCloud >= 10.2.1

Default value

owncloud_encryption_enabled: false

owncloud_encryption_force_encrypt_all

Default value

owncloud_encryption_force_encrypt_all: false

owncloud_federation_allow_incoming_server2server_share

Default value

owncloud_federation_allow_incoming_server2server_share: true

owncloud_federation_allow_outgoing_server2server_share

Default value

owncloud_federation_allow_outgoing_server2server_share: true

owncloud_federation_auto_accept_trusted

Default value

owncloud_federation_auto_accept_trusted: false

owncloud_federation_auto_add_servers

Default value

owncloud_federation_auto_add_servers: false

owncloud_fqdn

Default value

owncloud_fqdn: owncloud.example.com

owncloud_install_from_filesystem

Default value

owncloud_install_from_filesystem: false

Example usage

owncloud_install_from_filesystem: True
owncloud_download_url: /tmp/owncloud-10.3.1.tar.bz2

owncloud_integrity_ignore_missing_app_signature

Default value

owncloud_integrity_ignore_missing_app_signature: []

owncloud_knowledgebase_enabled

Default value

owncloud_knowledgebase_enabled: true

owncloud_log_cron

Default value

owncloud_log_cron: true

owncloud_log_dateformat

Default value

owncloud_log_dateformat: Y-m-d H:i:s.u

owncloud_log_file

Default value

owncloud_log_file: '{{ owncloud_data_path }}/owncloud.log'

owncloud_log_level

Default value

owncloud_log_level: 2

owncloud_log_rotate_size

Log rotate file size in bytes See documentation

Default value

owncloud_log_rotate_size: 0

owncloud_log_timezone

Default value

owncloud_log_timezone: Etc/UTC

owncloud_log_type

Default value

owncloud_log_type: owncloud

owncloud_login_alternatives

Allows to specify additional login buttons on the logon screen (e.g. SSO)

Default value

owncloud_login_alternatives: []

owncloud_mail_smtp_auth_enabled

Default value

owncloud_mail_smtp_auth_enabled: false

owncloud_medial_search_accounts_enabled

Default value

owncloud_medial_search_accounts_enabled: true

owncloud_occ_executable

Default value

owncloud_occ_executable: /usr/local/bin/occ

owncloud_packages_extra

Default value

owncloud_packages_extra: []

owncloud_password_force_change_on_first_login

Default value

owncloud_password_force_change_on_first_login: false

owncloud_redis_enabled

Default value

owncloud_redis_enabled: true

owncloud_redis_host

Default value

owncloud_redis_host: 127.0.0.1

owncloud_redis_port

Default value

owncloud_redis_port: 6379

owncloud_release_channel

Default value

owncloud_release_channel: production

Default value

owncloud_remember_login_cookie_lifetime: 1296000

owncloud_search_min_length

Default value

owncloud_search_min_length: 3

owncloud_session_keepalive_enabled

Default value

owncloud_session_keepalive_enabled: true

owncloud_session_lifetime

Default value

owncloud_session_lifetime: 86400

owncloud_setup_run_once

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.

Default value

owncloud_setup_run_once: true

owncloud_share_api_allow_group_sharing

Default value

owncloud_share_api_allow_group_sharing: false

Default value

owncloud_share_api_allow_links: true

owncloud_share_api_allow_mail_notification

Default value

owncloud_share_api_allow_mail_notification: true

owncloud_share_api_allow_public_notification

Default value

owncloud_share_api_allow_public_notification: false

owncloud_share_api_allow_public_upload

Default value

owncloud_share_api_allow_public_upload: true

owncloud_share_api_allow_resharing

Default value

owncloud_share_api_allow_resharing: true

owncloud_share_api_allow_share_dialog_user_enumeration

Default value

owncloud_share_api_allow_share_dialog_user_enumeration: true

owncloud_share_api_allow_social_share

Default value

owncloud_share_api_allow_social_share: true

owncloud_share_api_auto_accept_share

Default value

owncloud_share_api_auto_accept_share: false

owncloud_share_api_default_expire_date

Default value

owncloud_share_api_default_expire_date: true

owncloud_share_api_enabled

Default value

owncloud_share_api_enabled: true

owncloud_share_api_enforce_expire_date

Default value

owncloud_share_api_enforce_expire_date: false

Default value

owncloud_share_api_enforce_password_links_read_only: false

Default value

owncloud_share_api_enforce_password_links_read_write: false

Default value

owncloud_share_api_enforce_password_links_write_only: false

owncloud_share_api_expire_after_n_days

Default value

owncloud_share_api_expire_after_n_days: 7

owncloud_share_api_only_share_with_group_members

Default value

owncloud_share_api_only_share_with_group_members: false

owncloud_share_api_only_share_with_membership_groups

Default value

owncloud_share_api_only_share_with_membership_groups: false

owncloud_share_api_share_dialog_user_enumeration_group_members

Default value

owncloud_share_api_share_dialog_user_enumeration_group_members: false

owncloud_show_server_hostname

Default value

owncloud_show_server_hostname: false

owncloud_skeleton_path

Default value

owncloud_skeleton_path: '{{ owncloud_deploy_path }}/core/skeleton'

owncloud_src_path

Default value

owncloud_src_path: /usr/local/src/{{ owncloud_system_user }}

owncloud_syslog_log_format

Default value

owncloud_syslog_log_format: '[%reqId%][%remoteAddr%][%user%][%app%][%method%][%url%]
  %message%'

owncloud_syslog_tag

Default value

owncloud_syslog_tag: ownCloud

owncloud_system_group

Default value

owncloud_system_group: owncloud

owncloud_system_user

Default value

owncloud_system_user: owncloud

owncloud_system_user_comment

Default value

owncloud_system_user_comment: Owncloud Application Manager

owncloud_system_user_home

Default value

owncloud_system_user_home: /var/local/{{ owncloud_system_user }}

owncloud_system_user_shell

Default value

owncloud_system_user_shell: /usr/sbin/nologin

owncloud_token_auth_enforced

Default value

owncloud_token_auth_enforced: false

owncloud_trusted_domains

Default value

owncloud_trusted_domains:
  - '{{ owncloud_fqdn }}'

owncloud_upgrade_3party_app_disable

Default value

owncloud_upgrade_3party_app_disable: true

owncloud_upgrade_migration_test

Default value

owncloud_upgrade_migration_test: true

owncloud_version

Default value

owncloud_version: 10.9.0

owncloud_version_hide

Default value

owncloud_version_hide: true

owncloud_web_default_language

Default value

owncloud_web_default_language: en_US

Dependencies

None.