From 34ee4ec3c7582429ae0a64533fa72156b08f3d8e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 20 May 2020 14:00:05 +0200 Subject: [PATCH] Update to 2020-05-20 14:00 --- roles/seafile/files/avatars/default-non-register.jpg | Bin 0 -> 3869 bytes roles/seafile/files/avatars/default.png | Bin 0 -> 7642 bytes roles/seafile/tasks/directories.yml | 16 +++++++++------- roles/seafile/tasks/facts.yml | 3 ++- roles/seafile/tasks/install.yml | 13 +++++++++++-- 5 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 roles/seafile/files/avatars/default-non-register.jpg create mode 100644 roles/seafile/files/avatars/default.png diff --git a/roles/seafile/files/avatars/default-non-register.jpg b/roles/seafile/files/avatars/default-non-register.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3612eb4590dbfdb18816e6e562ee9694afdaf77a GIT binary patch literal 3869 zcmb6+c|4Tw_RnnA!3<-MEF=3CS%$K2BfC(RC|fF9mMoP?*_Sbv?4?AOYV0c6g|bH3 zLPS!sR16Y#RQG#-zt8>ap67ht&-*#&d7k&|=e&EPd+z}XuWzIeAP@-Ppf0dC0dxQi z3f)I4z^RC!Lm=RA1OqKC4IPpJiDYD8WMpDyMKLj>nHd>T94Is!hMk=q$->FSf#G7s zuw(WwfxxI|;0SsIf*!-f$b|WyVXqaS=|BXCfI-jziiW_@kiB-mOBEGBVG!^ipo#^B zBVhZ?KfM3Tq%vq|A<(^XfTSLRqF^WhAmhZpr&UtFBWc{tnKc2Rg<@Pft64BT#w9%f zz`Ig1EMw@$cqDHs0zgxn|0E2cbh?xb0lsuY*f7^@E@AjExBzT9_ylX@3Y3`kpS-Pd|Fzs?!wph z%UcmIdc(v;!U04m`Qj1E$C|i+shmRh)W9;PP8^yIrDVOdFKcaQ&6as!&s*;*m-+?A z+vUP1O=of=0BBhq{UI6b7+v-Hr~?_iZR-XAsJ1u$99&m>z9R8b#9|Ln4JwKP5I7Xj zP=kTW-v>AphM)lu6dQ&^K#o-yEzf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{ seafile_root_dir }}/meta/ansible_ccnet_id args: creates: "{{ seafile_root_dir }}/meta/ansible_ccnet_id" @@ -64,6 +64,7 @@ - import_tasks: ../includes/get_rand_pass.yml vars: - pass_file: "{{ seafile_root_dir }}/meta/ansible_dbpass" + - complex: False - set_fact: seafile_db_pass={{ rand_pass }} when: seafile_db_pass is not defined tags: seafile diff --git a/roles/seafile/tasks/install.yml b/roles/seafile/tasks/install.yml index 521be2c..53dac62 100644 --- a/roles/seafile/tasks/install.yml +++ b/roles/seafile/tasks/install.yml @@ -20,6 +20,7 @@ - java-1.8.0-openjdk # For seafile-pro - poppler-utils # For seafile-pro - unoconv # For seafile-pro + - python-setuptools # needed for ansible to create the venv tags: seafile - name: Check if py2 venv is setup @@ -128,6 +129,10 @@ dest: avatars tags: seafile +- name: Create data dir link + file: src={{ seafile_data_dir }} dest={{ seafile_root_dir }}/seafile-data state=link + tags: seafile + - name: Create pro-data link file: src={{ seafile_data_dir }}/pro dest={{ seafile_root_dir }}/pro-data state=link force=True when: seafile_license is defined @@ -142,6 +147,10 @@ when: seafile_install_mode == 'install' tags: seafile +- name: Copy default avatars + copy: src=avatars/ dest={{ seafile_data_dir }}/seahub/avatars/ + tags: seafile + # Needed since CentOS 7.5 so ldaps can be used - name: Remove bundled libs file: path={{ seafile_root_dir }}/seafile-server/seafile/lib/{{ item }} state=absent @@ -203,8 +212,8 @@ - name: Load database schema schema mysql_db: state: import - target: "{{ seafile_root_dir }}/seafile-server/seahub/sql/mysql.sql" - name: "{{ seafile_db_seahub }}" + target: "{{ item.file }}" + name: "{{ item.db }}" login_host: "{{ seafile_db_server }}" login_user: sqladmin login_password: "{{ mysql_admin_pass }}"