2022-01-10 04:49:15 +01:00
|
|
|
---
|
2022-04-16 17:13:16 +02:00
|
|
|
- name: "Generate backupscript"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: backupscript.sh
|
2022-11-30 09:48:57 +01:00
|
|
|
dest: /etc/cron.weekly/backupscript
|
2022-04-16 17:13:16 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0700'
|
2022-01-10 04:49:15 +01:00
|
|
|
|
2022-04-16 21:20:11 +02:00
|
|
|
- name: Create .ssh directory of root user
|
|
|
|
file:
|
|
|
|
path: /root/.ssh
|
|
|
|
state: directory
|
|
|
|
|
2022-04-16 17:47:49 +02:00
|
|
|
- name: Copy ssh config
|
|
|
|
copy:
|
|
|
|
src: ssh_config
|
|
|
|
dest: /root/.ssh/config
|
|
|
|
mode: 0600
|
|
|
|
owner: root
|
|
|
|
group: root
|
2022-04-16 19:55:29 +02:00
|
|
|
...
|