routeros: Create backup directories

This commit is contained in:
Timo Makinen 2025-07-12 13:45:17 +00:00
parent 7f7abc0ee7
commit 7fceed3e52

View file

@ -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