add clean task
This commit is contained in:
parent
8bc6261a68
commit
2103484081
3 changed files with 20 additions and 1 deletions
|
@ -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
11
tasks/clean.yml
Normal 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
|
|
@ -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
|
Loading…
Reference in a new issue