-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplaybook.yml
More file actions
39 lines (36 loc) · 1.12 KB
/
playbook.yml
File metadata and controls
39 lines (36 loc) · 1.12 KB
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
32
33
34
35
36
37
38
39
# deploying to server
# ansible-playbook -i <host>, playbook.yml
- hosts: all
tasks:
- name: test
ansible.builtin.include_tasks: test.yml
args:
apply:
tags:
- test
delegate_to: 127.0.0.1
tags:
- test
loop:
- { input: 'Chainsaw Man', output: 'Anime/Chainsaw Man (2022)/Season 1 (2022)/Chainsaw Man - 1x01 (01) - DOG & CHAINSAW', db: 'AniDB', format: 'animeFormat.groovy', extra: "--filter 's == 1 && e == 1'" }
- name: copy qbittorrent script
copy:
src: qbittorrent-postprocess
dest: /srv/pv/scripts/qbittorrent-postprocess
backup: true
tags: deploy
- name: copy partials
copy:
src: "partials"
dest: "/srv/pv/scripts/partials"
backup: true
tags: deploy
- name: template files out to destination
ansible.builtin.template:
src: "{{ item }}"
dest: "/srv/pv/scripts/{{ item | basename | splitext | first }}"
backup: true
vars:
scriptDir: "/scripts"
loop: "{{ lookup('fileglob', '*.groovy.j2', wantlist=True) }}"
tags: deploy