2022-01-10 04:49:15 +01:00
|
|
|
---
|
2022-04-16 17:13:16 +02:00
|
|
|
- name: "Generate backupscript"
|
2023-08-30 23:13:59 +02:00
|
|
|
template:
|
2022-04-16 17:13:16 +02:00
|
|
|
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
|
2023-08-30 23:13:59 +02:00
|
|
|
file:
|
2022-04-16 21:20:11 +02:00
|
|
|
path: /root/.ssh
|
|
|
|
state: directory
|
|
|
|
|
2022-04-16 17:47:49 +02:00
|
|
|
- name: Copy ssh config
|
2023-08-30 23:13:59 +02:00
|
|
|
copy:
|
2022-04-16 17:47:49 +02:00
|
|
|
src: ssh_config
|
|
|
|
dest: /root/.ssh/config
|
|
|
|
mode: 0600
|
|
|
|
owner: root
|
|
|
|
group: root
|
2022-04-16 19:55:29 +02:00
|
|
|
...
|