vm-ansible/roles/backuphost/tasks/main.yaml
Kristóf Torma 52f7e7e153
Some checks failed
continuous-integration/drone/push Build is failing
remove fqdn
2023-08-30 23:13:59 +02:00

30 lines
541 B
YAML

# TODO: Make backup user part of AD
---
- name: "Add backup user"
user:
name: backup
comment: Backup user
shell: /bin/bash
- name: Create .ssh directory of backup user
file:
path: /home/backup/.ssh
state: directory
- 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
...