-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yml
More file actions
31 lines (28 loc) · 837 Bytes
/
Copy pathdeployment.yml
File metadata and controls
31 lines (28 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env ansible-playbook
- name: animevost-downloader Configuration
hosts: home.local
vars:
dest: ~/server/animevost-downloader/
tasks:
- name: Require Docker
apt:
name:
- docker-ce
state: present
- name: Copy settings
copy: src={{ item }} dest={{ dest }}/{{ item }}
with_items:
- docker-compose.yml
- yt-dlp/
notify: Rebuild animevost-downloader
- name: Schedule
ansible.builtin.cron:
name: "Download new series from Animevost"
minute: "42"
hour: "18,20,22"
job: "cd ~/server/animevost-downloader && docker compose up >> ~/animevost-downloader.log 2>&1"
handlers:
- name: Rebuild animevost-downloader
ansible.builtin.command: docker compose build
args:
chdir: "{{ dest }}"