-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
36 lines (30 loc) · 970 Bytes
/
Copy pathTaskfile.yaml
File metadata and controls
36 lines (30 loc) · 970 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
32
33
34
35
36
version: '3'
env:
ANSIBLE_VERBOSITY: 1
tasks:
default:
desc: Show list of available commands
cmds:
- task --list
update:
desc: Upgrade dependencies
cmds:
- ansible-galaxy install -r requirements.yml
role:
desc: Create role
cmds:
- mkdir -p roles/{{.CLI_ARGS}}
- mkdir -p roles/{{.CLI_ARGS}}/tasks
- mkdir -p roles/{{.CLI_ARGS}}/templates
- mkdir -p roles/{{.CLI_ARGS}}/defaults
- touch roles/{{.CLI_ARGS}}/tasks/main.yaml
- touch roles/{{.CLI_ARGS}}/defaults/main.yaml
- touch roles/{{.CLI_ARGS}}/templates/docker-compose.yaml
theseus:
desc: Run Thesesus playbook
cmds:
- ansible-playbook -i inventories/local/inventory.toml playbooks/theseus.yml {{if .CLI_ARGS}}--tags "{{.CLI_ARGS}}"{{end}}
gpu:
desc: Run GPU playbook
cmds:
- ansible-playbook -i inventories/local/inventory.toml playbooks/gpu.yml {{if .CLI_ARGS}}--tags "{{.CLI_ARGS}}"{{end}}