add clean task

This commit is contained in:
meaz 2024-07-24 10:06:15 +02:00
parent 8bc6261a68
commit 2103484081
Signed by: meaz
GPG key ID: CD7A47B2F1ED43B4
3 changed files with 20 additions and 1 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

@ -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