Making it possible to define shell and support other os-ses
This commit is contained in:
parent
8cfe198f7e
commit
0aa8575227
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!{{ borgbackup_shell }}
|
||||||
|
|
||||||
if [ -z "$1" ] || [ ! -z "$2" ]
|
if [ -z "$1" ] || [ ! -z "$2" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user