Making it possible to define shell and support other os-ses

This commit is contained in:
Dieter Verhelst 2018-01-11 23:26:43 +01:00
parent 8cfe198f7e
commit 0aa8575227
4 changed files with 9 additions and 5 deletions

View File

@ -37,3 +37,7 @@ borgbackup_appendonly: False
borgbackup_management_station: '' borgbackup_management_station: ''
borgbackup_management_user: '' borgbackup_management_user: ''
borgbackup_management_ssh_pubkey: '' borgbackup_management_ssh_pubkey: ''
borgbackup_owner: root
borgbackup_group: root
borgbackup_shell: "/bin/bash"

View File

@ -96,8 +96,8 @@
template: template:
src: "borg-backup.sh.j2" src: "borg-backup.sh.j2"
dest: "/usr/local/bin/borg-backup" dest: "/usr/local/bin/borg-backup"
owner: "root" owner: "{{ borgbackup_owner }}"
group: "root" group: "{{ borgbackup_group }}"
mode: "0744" mode: "0744"
- name: client | create backup-directory on backup server - name: client | create backup-directory on backup server

View File

@ -3,8 +3,8 @@
get_url: get_url:
dest: "/usr/local/bin/borg" dest: "/usr/local/bin/borg"
checksum: "{{ borgbackup_checksum }}" checksum: "{{ borgbackup_checksum }}"
owner: "root" owner: "{{ borgbackup_owner }}"
group: "root" group: "{{ borgbackup_group }}"
mode: "0755" mode: "0755"
url: "{{ borgbackup_download_url }}" url: "{{ borgbackup_download_url }}"
tags: borginstall tags: borginstall

View File

@ -1,4 +1,4 @@
#!/bin/bash #!{{ borgbackup_shell }}
if [ -z "$1" ] || [ ! -z "$2" ] if [ -z "$1" ] || [ ! -z "$2" ]
then then