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