๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/backup/tasks/add.yml

6 lines
324 B

2 years ago
- name: add backup dirs to collected backup dirs
set_fact:
collected_backup_dirs: "{{ (collected_backup_dirs | d([])) +
([backup_items] if backup_items is string else backup_items) }}"
when: backup_items is defined and ((backup_items | type_debug == 'list') or backup_items is string)