Start developing cleanup playbook for semaphore.

This commit is contained in:
2021-11-23 13:18:47 +01:00
parent 8c379b7b7e
commit 097c7b866a
2 changed files with 18 additions and 0 deletions

17
semaphore.yaml Normal file
View File

@@ -0,0 +1,17 @@
---
# This playbook cleans up its own backup directory.
- name: Cleanup semaphore
hosts: all
gather_facts: true
tasks:
- include_vars: vars/odroid/variable.yaml
- name: Search for backup directories
find:
paths: "{{ local_backup }}"
file_type: directory
recurse: false
register: backup_dirs
- debug: var=backup_dirs

View File

@@ -0,0 +1 @@
local_backup: /home/semaphore/backup