|
|
@ -33,7 +33,7 @@ |
|
|
|
- name: Clone jicofo repo |
|
|
|
- name: Clone jicofo repo |
|
|
|
git: |
|
|
|
git: |
|
|
|
repo: "{{ jitsi_jicofo_git_url }}" |
|
|
|
repo: "{{ jitsi_jicofo_git_url }}" |
|
|
|
dest: "{{ jitsi_root_dir }}/tmp/jicofo" |
|
|
|
dest: "{{ jitsi_root_dir }}/src/jicofo" |
|
|
|
force: True |
|
|
|
force: True |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
register: jitsi_jicofo_git |
|
|
|
register: jitsi_jicofo_git |
|
|
@ -44,12 +44,12 @@ |
|
|
|
- name: Build jicofo |
|
|
|
- name: Build jicofo |
|
|
|
command: /opt/maven/apache-maven/bin/mvn package -DskipTests -Dassembly.skipAssembly=false |
|
|
|
command: /opt/maven/apache-maven/bin/mvn package -DskipTests -Dassembly.skipAssembly=false |
|
|
|
args: |
|
|
|
args: |
|
|
|
chdir: "{{ jitsi_root_dir }}/tmp/jicofo" |
|
|
|
chdir: "{{ jitsi_root_dir }}/src/jicofo" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: Extract jicofo archive |
|
|
|
- name: Extract jicofo archive |
|
|
|
unarchive: |
|
|
|
unarchive: |
|
|
|
src: "{{ jitsi_root_dir }}/tmp/jicofo/target/jicofo-1.1-SNAPSHOT-archive.zip" |
|
|
|
src: "{{ jitsi_root_dir }}/src/jicofo/target/jicofo-1.1-SNAPSHOT-archive.zip" |
|
|
|
dest: "{{ jitsi_root_dir }}/tmp/" |
|
|
|
dest: "{{ jitsi_root_dir }}/tmp/" |
|
|
|
remote_src: True |
|
|
|
remote_src: True |
|
|
|
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ |
|
|
|
- name: Clone jigasi repo |
|
|
|
- name: Clone jigasi repo |
|
|
|
git: |
|
|
|
git: |
|
|
|
repo: "{{ jitsi_jigasi_git_url }}" |
|
|
|
repo: "{{ jitsi_jigasi_git_url }}" |
|
|
|
dest: "{{ jitsi_root_dir }}/tmp/jigasi" |
|
|
|
dest: "{{ jitsi_root_dir }}/src/jigasi" |
|
|
|
force: True |
|
|
|
force: True |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
register: jitsi_jigasi_git |
|
|
|
register: jitsi_jigasi_git |
|
|
@ -78,12 +78,12 @@ |
|
|
|
- name: Build jigasi |
|
|
|
- name: Build jigasi |
|
|
|
command: /opt/maven/apache-maven/bin/mvn package -DskipTests -Dassembly.skipAssembly=false |
|
|
|
command: /opt/maven/apache-maven/bin/mvn package -DskipTests -Dassembly.skipAssembly=false |
|
|
|
args: |
|
|
|
args: |
|
|
|
chdir: "{{ jitsi_root_dir }}/tmp/jigasi" |
|
|
|
chdir: "{{ jitsi_root_dir }}/src/jigasi" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: Extract jigasi archive |
|
|
|
- name: Extract jigasi archive |
|
|
|
unarchive: |
|
|
|
unarchive: |
|
|
|
src: "{{ jitsi_root_dir }}/tmp/jigasi/target/jigasi-linux-x64-1.1-SNAPSHOT.zip" |
|
|
|
src: "{{ jitsi_root_dir }}/src/jigasi/target/jigasi-linux-x64-1.1-SNAPSHOT.zip" |
|
|
|
dest: "{{ jitsi_root_dir }}/tmp/" |
|
|
|
dest: "{{ jitsi_root_dir }}/tmp/" |
|
|
|
remote_src: True |
|
|
|
remote_src: True |
|
|
|
|
|
|
|
|
|
|
@ -122,7 +122,7 @@ |
|
|
|
- name: Clone jitsi meet |
|
|
|
- name: Clone jitsi meet |
|
|
|
git: |
|
|
|
git: |
|
|
|
repo: "{{ jitsi_meet_git_url }}" |
|
|
|
repo: "{{ jitsi_meet_git_url }}" |
|
|
|
dest: "{{ jitsi_root_dir }}/tmp/meet" |
|
|
|
dest: "{{ jitsi_root_dir }}/src/meet" |
|
|
|
force: True |
|
|
|
force: True |
|
|
|
register: jitsi_meet_git |
|
|
|
register: jitsi_meet_git |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
@ -132,13 +132,13 @@ |
|
|
|
tags: jitsi |
|
|
|
tags: jitsi |
|
|
|
block: |
|
|
|
block: |
|
|
|
- name: Install jitsi meet node dependencies |
|
|
|
- name: Install jitsi meet node dependencies |
|
|
|
npm: path={{ jitsi_root_dir }}/tmp/meet |
|
|
|
npm: path={{ jitsi_root_dir }}/src/meet |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: Build jitsi meet |
|
|
|
- name: Build jitsi meet |
|
|
|
command: make |
|
|
|
command: make |
|
|
|
args: |
|
|
|
args: |
|
|
|
chdir: "{{ jitsi_root_dir }}/tmp/meet" |
|
|
|
chdir: "{{ jitsi_root_dir }}/src/meet" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
become_user: "{{ jitsi_user }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: Deploy new jitsi meet version |
|
|
|
- name: Deploy new jitsi meet version |
|
|
@ -148,16 +148,7 @@ |
|
|
|
cp -r *.js *.html connection_optimization favicon.ico fonts images libs static sounds LICENSE lang {{ jitsi_root_dir }}/meet/ |
|
|
|
cp -r *.js *.html connection_optimization favicon.ico fonts images libs static sounds LICENSE lang {{ jitsi_root_dir }}/meet/ |
|
|
|
cp css/all.css {{ jitsi_root_dir }}/meet/css/ |
|
|
|
cp css/all.css {{ jitsi_root_dir }}/meet/css/ |
|
|
|
args: |
|
|
|
args: |
|
|
|
chdir: "{{ jitsi_root_dir }}/tmp/meet" |
|
|
|
chdir: "{{ jitsi_root_dir }}/src/meet" |
|
|
|
|
|
|
|
|
|
|
|
- name: Install prosody plugins |
|
|
|
|
|
|
|
synchronize: |
|
|
|
|
|
|
|
src: "{{ jitsi_root_dir }}/tmp/meet/resources/prosody-plugins/" |
|
|
|
|
|
|
|
dest: "{{ jitsi_root_dir }}/prosody/" |
|
|
|
|
|
|
|
recursive: True |
|
|
|
|
|
|
|
delete: True |
|
|
|
|
|
|
|
delegate_to: "{{ inventory_hostname }}" |
|
|
|
|
|
|
|
notify: reload prosody |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install dehydrated hook |
|
|
|
- name: Install dehydrated hook |
|
|
|
template: src=dehydrated_hook.sh.j2 dest=/etc/dehydrated/hooks_deploy_cert.d/jitsi.sh mode=755 |
|
|
|
template: src=dehydrated_hook.sh.j2 dest=/etc/dehydrated/hooks_deploy_cert.d/jitsi.sh mode=755 |
|
|
|