routeros_firmware: Initial version of role

This commit is contained in:
Timo Makinen 2024-02-10 17:34:31 +00:00
parent c91568cd7e
commit 2eb65f713f
3 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,39 @@
---
- name: Create download directory
ansible.builtin.file:
path: /srv/web/oob.foo.sh/routeros
state: directory
mode: 0755
owner: root
group: "{{ ansible_wheel }}"
- name: Install README.md
ansible.builtin.copy:
dest: /srv/web/oob.foo.sh/routeros/README.md
content: |
## Update
```
/system package update print
/tool fetch url=https://oob.foo.sh/routeros/routeros-7.13.4-arm.npk
/system reboot
/system package update print
```
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: Install download script
ansible.builtin.copy:
dest: /usr/local/bin/download-routeros-firmware
src: download-routeros-firmware.sh
mode: 0755
owner: root
group: "{{ ansible_wheel }}"
- name: Install cron job
ansible.builtin.cron:
name: download-routeros-firmware
job: /usr/local/bin/download-routeros-firmware
hour: "05"
minute: "25"