1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update nextcloud/tasks/install.yml

This commit is contained in:
A Holt 2020-01-29 09:21:00 -05:00 committed by GitHub
parent c99ad1a587
commit 9ebffba965
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,23 +105,23 @@
# NOT NEC TO TEST FOR is_raspbian_8 OR is_raspbian_9 AS /opt/iiab/iiab/vars/<OS>.yml # NOT NEC TO TEST FOR is_raspbian_8 OR is_raspbian_9 AS /opt/iiab/iiab/vars/<OS>.yml
# DEFINES THESE AS SUBSETS OF is_debian_8 OR is_debian_9 (FOR NOW!) # DEFINES THESE AS SUBSETS OF is_debian_8 OR is_debian_9 (FOR NOW!)
# we need to install the rpm in order to get the dependencies ## we need to install the rpm in order to get the dependencies
# but we only need to do this the first time ## but we only need to do this the first time
#
- name: Install 7 php packages (redhat) #- name: Install 7 php packages (redhat)
package: # package:
name: # name:
- php # - php
- php-gd # - php-gd
- php-json # - php-json
- php-mysql # - php-mysql
- php-curl # - php-curl
- php-intl # - php-intl
- php-mcrypt # - php-mcrypt
# CentOS does not have a package for php-imagick # # CentOS does not have a package for php-imagick
#- php-imagick # #- php-imagick
state: present # state: present
when: is_redhat | bool # when: is_redhat | bool
- name: Unarchive {{ nextcloud_src_file_old }} to permanent location {{ nextcloud_prefix }}/nextcloud on older OS's lacking PHP 7.1+ # i.e. unpack nextcloud_latest-15.tar.bz2 to /opt/nextcloud - name: Unarchive {{ nextcloud_src_file_old }} to permanent location {{ nextcloud_prefix }}/nextcloud on older OS's lacking PHP 7.1+ # i.e. unpack nextcloud_latest-15.tar.bz2 to /opt/nextcloud
unarchive: unarchive:
@ -139,32 +139,32 @@
when: php_new | bool when: php_new | bool
#when: nextcloud_force_install and not (is_debian_9 or is_raspbian_9 or is_ubuntu_16) #when: nextcloud_force_install and not (is_debian_9 or is_raspbian_9 or is_ubuntu_16)
- name: Create dir /etc/nextcloud (centos) for a subsequent config dir that's symlinked to /etc/nextcloud ? #- name: Create dir /etc/nextcloud (centos) for a subsequent config dir that's symlinked to /etc/nextcloud ?
file: # file:
path: /etc/nextcloud # path: /etc/nextcloud
state: directory # state: directory
when: is_centos | bool # when: is_centos | bool
#
- name: Install {{ nextcloud_prefix }}/nextcloud/config/autoconfig.php from template (centos) #- name: Install {{ nextcloud_prefix }}/nextcloud/config/autoconfig.php from template (centos)
template: # template:
src: autoconfig.php.j2 # src: autoconfig.php.j2
dest: "{{ nextcloud_prefix }}/nextcloud/config/autoconfig.php" # dest: "{{ nextcloud_prefix }}/nextcloud/config/autoconfig.php"
owner: "{{ apache_user }}" # owner: "{{ apache_user }}"
group: "{{ apache_user }}" # group: "{{ apache_user }}"
mode: '0640' # mode: '0640'
when: is_centos | bool # when: is_centos | bool
- name: chown -R {{ apache_user }}:{{ apache_user }} {{ nextcloud_prefix }}/nextcloud - name: chown -R {{ apache_user }}:{{ apache_user }} {{ nextcloud_prefix }}/nextcloud
file: file:
path: "{{ nextcloud_prefix }}/nextcloud" path: "{{ nextcloud_prefix }}/nextcloud" # /opt
owner: "{{ apache_user }}" owner: "{{ apache_user }}"
group: "{{ apache_user }}" group: "{{ apache_user }}"
recurse: yes recurse: yes
state: directory state: directory
- name: Create data directory {{ nextcloud_data_dir }} # /opt/nextcloud/data - name: Create data directory {{ nextcloud_data_dir }}
file: file:
path: "{{ nextcloud_data_dir }}" path: "{{ nextcloud_data_dir }}" # /opt/nextcloud/data
owner: "{{ apache_user }}" owner: "{{ apache_user }}"
group: "{{ apache_user }}" group: "{{ apache_user }}"
mode: '0750' mode: '0750'
@ -175,6 +175,11 @@
src: nextcloud.conf.j2 src: nextcloud.conf.j2
dest: "/etc/{{ apache_config_dir }}/nextcloud.conf" dest: "/etc/{{ apache_config_dir }}/nextcloud.conf"
- name: Provision Nextcloud's MySQL DB, run Nextcloud's install wizard etc
include_tasks: setup.yml
- name: "Add 'nextcloud_installed: True' to {{ iiab_state_file }}" - name: "Add 'nextcloud_installed: True' to {{ iiab_state_file }}"
lineinfile: lineinfile:
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml