copy stuff

This commit is contained in:
Torma Kristóf 2022-04-16 21:17:11 +02:00
parent ad4dac649e
commit cfd20456ac
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCqSr3e/u2WtarrtKFhcj2E4MM/NpfREVxKnBO66HRoAUmjtNNMqS4O0OKlTLAKTFiftKeBfuvxtvdFXROXBAHekL0ff2DOuWz7k0IQjJd51x31FdVFUJZB2zk+UJENiJxwyqlQudJc7LYkztJyULfb0CYIkunTFO+fjZOUNrflrqe0JcLIgcuQqsi0gLwiQ+giWlZstdCGOq2ziqi5ZVi2Rhsgi1Lb4UsiO2B8dkxFiJMBkG+YvLl1EwZ6m9j8O92FsCsqbfoPIdcgR3XCzogSdjvKM72yKBEKs1hgGR6ajVkagWEOWXs8PC9toBcyZYt2GLncvyO1TnFDnPbecOdloifVDI23Osi+cFuOzLyi5CLs+sXaJNz1EOwlXwKhanqvCf+h11UKV7GuCjtlf6f8qOPtpTGgtOQnFie/jyNYBlcj2abNNPK5JaWtT4voY3GzpeYMV9c+bKgeS4r/7OqDn8Wpf8swWdwlGn0fBjwrVjEgAzwOH8XhHhQFGrNZbq0= root@backup-target

View File

@ -0,0 +1,4 @@
Host oniel.tormakristof.eu
HostName oniel.tormakristof.eu
User backup
IdentityFile ~/.ssh/id_rsa

View File

@ -38,4 +38,20 @@
service:
name: sshd
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
...

View File

@ -13,6 +13,7 @@
dest: /etc/docker/daemon.json
mode: 644
owner: root
group: backup
- name: Enable and restart Docker daemon
service: