Merge pull request 'Add clean task and change from zip to tar' (#4) from clean into staging

Reviewed-on: #4
Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
meaz 2024-08-21 21:39:33 +02:00
commit be7267ddc8
4 changed files with 21 additions and 2 deletions

View file

@ -20,9 +20,11 @@ The playbook includes postgresql, nginx and node roles and deploys entire stack
You can use tags when you deploy:
- `config`: to deploy just config
- `password`: to change root user password
- `clean,never`: to clean the cache
## CHANGELOG
- **24.07.2024** - Add clean task + change from dwonloading .zip to .tar.xz
- **20.12.2023** - Role creation

11
tasks/clean.yml Normal file
View file

@ -0,0 +1,11 @@
---
- name: '[CLEAN] - Cache clean'
shell: yarn cache clean
args:
chdir: "{{ peertube_app_dir }}"
become: true
become_user: "{{ peertube_user }}"
tags:
- clean
- never

View file

@ -38,7 +38,7 @@
- name: "[INSTALL] - Download peertube release"
unarchive:
src: "https://github.com/Chocobozzz/PeerTube/releases/download/{{ peertube_version }}/peertube-{{ peertube_version }}.zip"
src: "https://github.com/Chocobozzz/PeerTube/releases/download/{{ peertube_version }}/peertube-{{ peertube_version }}.tar.xz"
dest: "{{ peertube_app_dir }}/versions"
owner: '{{ peertube_user }}'
group: '{{ peertube_group }}'

View file

@ -20,4 +20,10 @@
- name: Set password for root
include_tasks: password.yml
tags:
- password
- password
- name: Clean
include_tasks: clean.yml
tags:
- clean
- never