You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.9 KiB
50 lines
1.9 KiB
5 years ago
|
---
|
||
|
|
||
|
- name: Ensure Matrix jitsi-jvb path exists
|
||
2 years ago
|
ansible.builtin.file:
|
||
5 years ago
|
path: "{{ item.path }}"
|
||
|
state: directory
|
||
|
mode: 0777
|
||
|
owner: "{{ matrix_user_username }}"
|
||
5 years ago
|
group: "{{ matrix_user_groupname }}"
|
||
5 years ago
|
with_items:
|
||
3 years ago
|
- {path: "{{ matrix_jitsi_jvb_base_path }}", when: true}
|
||
|
- {path: "{{ matrix_jitsi_jvb_config_path }}", when: true}
|
||
2 years ago
|
when: item.when | bool
|
||
5 years ago
|
|
||
|
- name: Ensure jitsi-jvb Docker image is pulled
|
||
2 years ago
|
community.docker.docker_image:
|
||
5 years ago
|
name: "{{ matrix_jitsi_jvb_docker_image }}"
|
||
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
||
|
force_source: "{{ matrix_jitsi_jvb_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
||
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_jitsi_jvb_docker_image_force_pull }}"
|
||
3 years ago
|
register: result
|
||
2 years ago
|
retries: "{{ devture_playbook_help_container_retries_count }}"
|
||
|
delay: "{{ devture_playbook_help_container_retries_delay }}"
|
||
3 years ago
|
until: result is not failed
|
||
5 years ago
|
|
||
5 years ago
|
- name: Ensure jitsi-jvb configuration files created
|
||
2 years ago
|
ansible.builtin.template:
|
||
5 years ago
|
src: "{{ role_path }}/templates/jvb/{{ item }}.j2"
|
||
|
dest: "{{ matrix_jitsi_jvb_config_path }}/{{ item }}"
|
||
3 years ago
|
owner: "{{ matrix_user_username }}"
|
||
|
group: "{{ matrix_user_groupname }}"
|
||
5 years ago
|
mode: 0644
|
||
|
with_items:
|
||
4 years ago
|
- custom-sip-communicator.properties
|
||
5 years ago
|
- logging.properties
|
||
5 years ago
|
|
||
5 years ago
|
- name: Ensure jitsi-jvb environment variables file created
|
||
2 years ago
|
ansible.builtin.template:
|
||
5 years ago
|
src: "{{ role_path }}/templates/jvb/env.j2"
|
||
|
dest: "{{ matrix_jitsi_jvb_base_path }}/env"
|
||
3 years ago
|
owner: "{{ matrix_user_username }}"
|
||
|
group: "{{ matrix_user_groupname }}"
|
||
5 years ago
|
mode: 0640
|
||
|
|
||
5 years ago
|
- name: Ensure matrix-jitsi-jvb.service installed
|
||
2 years ago
|
ansible.builtin.template:
|
||
5 years ago
|
src: "{{ role_path }}/templates/jvb/matrix-jitsi-jvb.service.j2"
|
||
2 years ago
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-jitsi-jvb.service"
|
||
5 years ago
|
mode: 0644
|