28 lines
651 B
YAML
28 lines
651 B
YAML
---
|
|
- name: Install dependencies
|
|
ansible.builtin.package:
|
|
name: jq
|
|
state: installed
|
|
|
|
- name: Create download directory
|
|
ansible.builtin.file:
|
|
path: /srv/web/iot.foo.sh/shelly
|
|
state: directory
|
|
mode: "0755"
|
|
owner: root
|
|
group: "{{ ansible_wheel }}"
|
|
|
|
- name: Install download script
|
|
ansible.builtin.copy:
|
|
dest: /usr/local/bin/download-shelly-firmware
|
|
src: download-shelly-firmware.sh
|
|
mode: "0755"
|
|
owner: root
|
|
group: "{{ ansible_wheel }}"
|
|
|
|
- name: Install cron job
|
|
ansible.builtin.cron:
|
|
name: download-shelly-firmware
|
|
job: /usr/local/bin/download-shelly-firmware
|
|
hour: "05"
|
|
minute: 20
|