Start developing cleanup playbook for semaphore.
This commit is contained in:
17
semaphore.yaml
Normal file
17
semaphore.yaml
Normal 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
|
||||
1
vars/semaphore/variable.yaml
Normal file
1
vars/semaphore/variable.yaml
Normal file
@@ -0,0 +1 @@
|
||||
local_backup: /home/semaphore/backup
|
||||
Reference in New Issue
Block a user