-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
54 lines (45 loc) · 1.07 KB
/
Taskfile.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
version: "3"
dotenv: [".env"]
env:
ANSIBLE_CONFIG: "{{.USER_WORKING_DIR}}/ansible.cfg"
vars:
INVENTORY_PATH: '{{default "inventory" .INVENTORY_PATH}}'
includes:
ansible:
taskfile: .taskfiles/ansible.tasks.yml
optional: true
env:
ANSIBLE_HOST_KEY_CHECKING: False
git:
taskfile: .taskfiles/git.tasks.yml
optional: true
internal: true
rclone:
taskfile: .taskfiles/rclone.tasks.yml
optional: true
internal: true
tasks:
default:
cmds:
- task -l
silent: true
setup:
desc: "Configure repository for use"
cmds:
- task: rclone:install
- task: git:reset:dir
vars:
CLI_ARGS: "{{.USER_WORKING_DIR}}/inventory"
- task: rclone:copy
vars:
RCLONE_SOURCE: "inventory:{{.INVENTORY_PATH}}/"
RCLONE_DEST: "{{.USER_WORKING_DIR}}/inventory/"
- task: ansible:galaxy
update:
desc: "Update repo"
cmds:
- rm -rf .taskfiles
- git clone https://github.com/frozenfoxx/taskfiles.git .taskfiles
- git restore .
- git pull --rebase