-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
55 lines (44 loc) · 1.3 KB
/
Taskfile.yml
File metadata and controls
55 lines (44 loc) · 1.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Cross-platform Ansible automation tool for macOS, Arch Linux, and Fedora
# All commands work on all platforms with automatic OS detection
# https://taskfile.dev
version: '3'
vars:
DEFAULT_FLAGS: --ask-become-pass
VAULT_FLAG: --ask-vault-pass
tasks:
test:
desc: Run Nix tests
cmds:
- ./test/test-nix.sh
all:
desc: Complete setup with vault
cmds:
- ansible-playbook local.yml {{.DEFAULT_FLAGS}} {{.VAULT_FLAG}}
nix:
desc: Install Nix and packages
cmds:
- ansible-playbook local.yml -t nix {{.DEFAULT_FLAGS}}
zsh:
desc: ZSH configuration
cmds:
- ansible-playbook local.yml -t zsh {{.DEFAULT_FLAGS}}
ssh:
desc: SSH setup (vault required)
cmds:
- ansible-playbook local.yml -t ssh {{.DEFAULT_FLAGS}} {{.VAULT_FLAG}}
git-setup:
desc: Git configuration setup
cmds:
- ansible-playbook local.yml -t git-setup
dotfiles:
desc: Deploy dotfiles (vault required)
cmds:
- ansible-playbook local.yml -t dotfiles {{.DEFAULT_FLAGS}} {{.VAULT_FLAG}}
reload-darwin:
desc: Home-manager switch for macOS ARM
cmds:
- home-manager switch --flake .#wesbragagt@darwin-aarch64
reload-linux:
desc: Home-manager switch for Linux x86_64
cmds:
- home-manager switch --flake .#wesbragagt@linux-x86_64