-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtaskfile.yml
More file actions
40 lines (34 loc) · 1015 Bytes
/
taskfile.yml
File metadata and controls
40 lines (34 loc) · 1015 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
37
38
39
40
---
version: "3"
tasks:
apply:
desc: Apply config to the router
summary: |
Environment variables:
TARGET auto, router, router_factory (default: auto)
ROLE single role to apply instead of full playbook
Extra ansible-playbook args can be passed after --
silent: true
cmds:
- scripts/apply.sh {{.CLI_ARGS}}
setup:
desc: Install Ansible dependencies
cmds:
- ansible-galaxy collection install -r requirements.yml
lint:
desc: Run linting checks on playbooks and configs
cmds:
- yamllint .
- ANSIBLE_PLAYBOOK_DIR={{.ROOT_DIR}}/playbooks ansible-lint
vault:
desc: Open the encrypted vault file
cmds:
- ansible-vault edit group_vars/all/vault.yml
firmware:
desc: Build and download a custom OpenWrt image
summary: |
Target: rockchip/armv8 — FriendlyARM NanoPi R6S
Environment variables:
VERSION OpenWrt release to build (required)
cmds:
- scripts/firmware-build.sh