vm-ansible/roles/backupscript/tasks/main.yaml
Kristóf Torma e24b51e3da
All checks were successful
continuous-integration/drone/push Build is passing
change from systemd to cron
2022-07-18 16:55:17 +02:00

23 lines
407 B
YAML

---
- name: "Generate backupscript"
ansible.builtin.template:
src: backupscript.sh
dest: /etc/cron.weekly/backupscript.sh
owner: root
group: root
mode: '0700'
- name: Create .ssh directory of root user
file:
path: /root/.ssh
state: directory
- name: Copy ssh config
copy:
src: ssh_config
dest: /root/.ssh/config
mode: 0600
owner: root
group: root
...