Update Install_recording.yml

This commit is contained in:
2025-05-23 16:48:13 +02:00
committed by GitHub
parent 6fed274e03
commit e3e2cf0188

View File

@@ -97,33 +97,33 @@
- name: Maak de map recording aan - name: Maak de map recording aan
ansible.builtin.file: ansible.builtin.file:
path: /opt/recording path: /home/ubuntu/recording
state: directory state: directory
become: yes become: yes
- name: Clone nextcloud-talk-recording repository - name: Clone nextcloud-talk-recording repository
ansible.builtin.git: ansible.builtin.git:
repo: https://github.com/nextcloud/nextcloud-talk-recording.git repo: https://github.com/nextcloud/nextcloud-talk-recording.git
dest: /opt/recording/nextcloud-talk-recording dest: /home/ubuntu/recording/nextcloud-talk-recording
become: yes become: yes
- name: Installeer een virtuele omgeving in map recording - name: Installeer een virtuele omgeving in map recording
ansible.builtin.command: ansible.builtin.command:
cmd: python3 -m venv venv cmd: python3 -m venv venv
chdir: /opt/recording chdir: /home/ubuntu/recording
become: yes become: yes
- name: Activeer de virtuele omgeving en installeer nextcloud-talk-recording - name: Activeer de virtuele omgeving en installeer nextcloud-talk-recording
ansible.builtin.shell: | ansible.builtin.shell: |
source /opt/recording/venv/bin/activate source /home/ubuntu/recording/venv/bin/activate
pip install file:///opt/recording/nextcloud-talk-recording pip install file:///home/ubuntu/recording/nextcloud-talk-recording
args: args:
executable: /bin/bash executable: /bin/bash
become: yes become: yes
- name: Maak de server.conf aan - name: Maak de server.conf aan
ansible.builtin.copy: ansible.builtin.copy:
dest: /opt/recording/server.conf dest: /home/ubuntu/recording/server.conf
content: | content: |
[logs] [logs]
level = 20 level = 20
@@ -158,8 +158,8 @@
- name: Laat de service altijd draaien - name: Laat de service altijd draaien
ansible.builtin.shell: | ansible.builtin.shell: |
source /opt/recording/venv/bin/activate source /home/ubuntu/recording/venv/bin/activate
nohup python3 -m nextcloud.talk.recording > /opt/recording/output.log 2>&1 & nohup python3 -m nextcloud.talk.recording > /home/ubuntu/recording/output.log 2>&1 &
args: args:
executable: /bin/bash executable: /bin/bash
become: yes become: yes