routeros: Create backup directories
This commit is contained in:
parent
7f7abc0ee7
commit
7fceed3e52
1 changed files with 17 additions and 0 deletions
|
@ -102,6 +102,23 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Create backup directory
|
||||
ansible.builtin.file:
|
||||
path: /export/backup
|
||||
state: directory
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Link backup directory
|
||||
ansible.builtin.file:
|
||||
path: /srv/backup
|
||||
src: /export/backup
|
||||
state: link
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
follow: false
|
||||
|
||||
- name: Copy sw-backup script
|
||||
ansible.builtin.copy:
|
||||
dest: /usr/local/bin/sw-backup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue