ansible-roles/evobackup-client/tasks/upload_scripts.yml
Patrick Marchand de4ba88790
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Dried up the tags for evobackup-client
blocks allow us to assign multiple tags to multiple tasks without
repeating ourselves. This also simplifies other logic like conditional
includes.
2020-06-23 12:07:51 -04:00

21 lines
621 B
YAML

---
- block:
- include: "jail_port.yml"
- name: Upload evobackup script
template:
src: "{{ item }}"
dest: "{{ evobackup_client__cron_path }}"
force: true
mode: 0755
with_first_found:
- "templates/evobackup-client/{{ evobackup_client__cron_template_name }}.{{ inventory_hostname }}.sh.j2"
- "templates/evobackup-client/{{ evobackup_client__cron_template_name }}.{{ host_group }}.sh.j2"
- "templates/evobackup-client/{{ evobackup_client__cron_template_name }}.sh.j2"
- "zzz_evobackup.default.sh.j2"
tags:
- evobackup_client
- evobackup_client_script