copy stuff
This commit is contained in:
parent
ad4dac649e
commit
cfd20456ac
1
roles/backuphost/files/authorized_keys
Normal file
1
roles/backuphost/files/authorized_keys
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCqSr3e/u2WtarrtKFhcj2E4MM/NpfREVxKnBO66HRoAUmjtNNMqS4O0OKlTLAKTFiftKeBfuvxtvdFXROXBAHekL0ff2DOuWz7k0IQjJd51x31FdVFUJZB2zk+UJENiJxwyqlQudJc7LYkztJyULfb0CYIkunTFO+fjZOUNrflrqe0JcLIgcuQqsi0gLwiQ+giWlZstdCGOq2ziqi5ZVi2Rhsgi1Lb4UsiO2B8dkxFiJMBkG+YvLl1EwZ6m9j8O92FsCsqbfoPIdcgR3XCzogSdjvKM72yKBEKs1hgGR6ajVkagWEOWXs8PC9toBcyZYt2GLncvyO1TnFDnPbecOdloifVDI23Osi+cFuOzLyi5CLs+sXaJNz1EOwlXwKhanqvCf+h11UKV7GuCjtlf6f8qOPtpTGgtOQnFie/jyNYBlcj2abNNPK5JaWtT4voY3GzpeYMV9c+bKgeS4r/7OqDn8Wpf8swWdwlGn0fBjwrVjEgAzwOH8XhHhQFGrNZbq0= root@backup-target
|
4
roles/backuphost/files/ssh_config
Normal file
4
roles/backuphost/files/ssh_config
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Host oniel.tormakristof.eu
|
||||||
|
HostName oniel.tormakristof.eu
|
||||||
|
User backup
|
||||||
|
IdentityFile ~/.ssh/id_rsa
|
@ -38,4 +38,20 @@
|
|||||||
service:
|
service:
|
||||||
name: sshd
|
name: sshd
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: Copy authorized_keys
|
||||||
|
copy:
|
||||||
|
src: authorized_keys
|
||||||
|
dest: /home/backup/.ssh/authorized_keys
|
||||||
|
mode: 0600
|
||||||
|
owner: backup
|
||||||
|
group: backup
|
||||||
|
|
||||||
|
- name: Copy ssh config
|
||||||
|
copy:
|
||||||
|
src: ssh_config
|
||||||
|
dest: /home/backup/.ssh/config
|
||||||
|
mode: 0600
|
||||||
|
owner: backup
|
||||||
|
group: backup
|
||||||
...
|
...
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
dest: /etc/docker/daemon.json
|
dest: /etc/docker/daemon.json
|
||||||
mode: 644
|
mode: 644
|
||||||
owner: root
|
owner: root
|
||||||
|
group: backup
|
||||||
|
|
||||||
- name: Enable and restart Docker daemon
|
- name: Enable and restart Docker daemon
|
||||||
service:
|
service:
|
||||||
|
Loading…
Reference in New Issue
Block a user