install btrbk from github to get the latest version
parent
2fad0b1f8d
commit
b7761fc4f1
|
@ -2,6 +2,7 @@
|
||||||
- name: install packages
|
- name: install packages
|
||||||
apk:
|
apk:
|
||||||
name:
|
name:
|
||||||
- btrbk
|
|
||||||
- coreutils # needed by btrbk
|
|
||||||
- btrfs-progs
|
- btrfs-progs
|
||||||
|
- mbuffer
|
||||||
|
- openssh
|
||||||
|
- perl
|
||||||
|
|
|
@ -2,5 +2,8 @@
|
||||||
- name: install packages
|
- name: install packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- btrbk
|
|
||||||
- btrfs-progs
|
- btrfs-progs
|
||||||
|
- mbuffer
|
||||||
|
- openssh-client
|
||||||
|
- openssh-server
|
||||||
|
- perl
|
||||||
|
|
|
@ -7,6 +7,17 @@
|
||||||
include_tasks: debian.yml
|
include_tasks: debian.yml
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||||
|
|
||||||
|
- name: create btrbk directory config
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: /etc/btrbk
|
||||||
|
|
||||||
|
- name: download btrbk executable
|
||||||
|
get_url:
|
||||||
|
url: '{{ btrbk_url }}'
|
||||||
|
dest: /usr/local/bin/btrbk
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
- name: copy btrbk config
|
- name: copy btrbk config
|
||||||
copy:
|
copy:
|
||||||
src: "host_files/btrbk/{{ ansible_hostname }}/btrbk.conf"
|
src: "host_files/btrbk/{{ ansible_hostname }}/btrbk.conf"
|
||||||
|
@ -39,9 +50,10 @@
|
||||||
owner: btrbk
|
owner: btrbk
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: add btrbk ssh keys to lbu
|
- name: add btrbk files to lbu
|
||||||
lbu:
|
lbu:
|
||||||
include:
|
include:
|
||||||
|
- /usr/local/bin/btrbk
|
||||||
- /var/lib/btrbk/.ssh/id_ed25519
|
- /var/lib/btrbk/.ssh/id_ed25519
|
||||||
- /var/lib/btrbk/.ssh/id_ed25519.pub
|
- /var/lib/btrbk/.ssh/id_ed25519.pub
|
||||||
- /var/lib/btrbk/.ssh/authorized_keys
|
- /var/lib/btrbk/.ssh/authorized_keys
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
btrbk_url: https://raw.githubusercontent.com/digint/btrbk/master/btrbk
|
Loading…
Reference in New Issue