ansible-roles/evobackup-client/tasks/upload_scripts.yml
Patrick Marchand 8caca4c711 Split jail port retrival tasks into their own file
This makes it easier to manage the dependency of the other tasks
on this variable. I removed the tags on those tasks so they would not
be excluded.
2020-06-23 11:07:55 -04:00

17 lines
558 B
YAML

---
- include: "jail_port.yml"
when: evobackup_ssh_port = ''
- 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"