rclone: Don't use template for backup script

This commit is contained in:
Timo Makinen 2024-04-07 16:15:38 +00:00
parent cd8e979ded
commit f3293d4b05
3 changed files with 7 additions and 4 deletions

View file

@ -1,9 +1,9 @@
#!/bin/sh
set -u
set -eu
umask 027
TARGET="{{ destination }}"
TARGET="/srv/backup"
CONFIG="/etc/rclone/rclone.conf"
LOGDIR="/var/log/rclone"
RCLONE="/usr/local/bin/rclone"

View file

@ -0,0 +1,3 @@
---
dependencies:
- {role: backup_server}

View file

@ -29,9 +29,9 @@
group: "{{ local_user | default(ansible_wheel) }}"
- name: Copy rclone sync script
ansible.builtin.template:
ansible.builtin.copy:
dest: /usr/local/bin/rclone-sync
src: rclone-sync.sh.j2
src: rclone-sync.sh
mode: "0755"
owner: root
group: "{{ ansible_wheel }}"