Install owncloud.
- OS: CentOS 6/7
I've checked on CentOS 6.5 and 7.0.
-
owncloud_db_add_on_mysql_enable
- If you want to create table for external storages, set this variable to
true
. - If you set
true
, following variables are needed owncloud_db_host
: default value is localhostowncloud_db_user
: default value isowncloud
owncloud_db_pass
: default value isowncloud
owndloud_db_table
name_to_be_created
: the default value isowncloud
collation
: the default value isutf8_general_ci
encoding
: the default value isutf8
- If you want to create table for external storages, set this variable to
-
owncloud_php_timezone
: timezone configuration in/etc/php.ini
-
owncloud_php_default_char
: timezone configuration in/etc/php.ini
.
- A package
libselinux-python
is required in advance if SELinux is installed. magnus919.epel
: for installation of EPEL for CentOS systemshostclick.remi_repo
: for addition of Remi repository for CentOS systems
- hosts: owncloud
sudo: yes
pre_tasks:
- name: Ensure preriquisite packages are installed
yum: name="{{ item }}" state=present
with_items:
- libselinux-python
roles:
- owncloud
vars:
owncloud_db_host: "{{ hostvars['other-db-host']['ansible_eth0']['ipv4']['address'] }}"
MIT
Kenta Nishimura, data-science infrastructure engineers at a telecommunications company.