1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Ansible_Project/roles/ansistrano.deploy/tasks/cleanup.yml
2022-05-02 17:37:08 +02:00

5 lines
223 B
YAML

---
# Clean up releases
- name: ANSISTRANO | Clean up releases
shell: ls -1dt {{ ansistrano_releases_path }}/* | tail -n +{{ ansistrano_keep_releases | int + 1 }} | xargs rm -rf
when: ansistrano_keep_releases | int > 0