vm-ansible/roles/backupscript/tasks/main.yaml

23 lines
436 B
YAML
Raw Normal View History

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
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-03-05 19:00:38 +01:00
ansible.builtin.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-03-05 19:00:38 +01:00
ansible.builtin.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
...