Skip to content

Commit e97ab62

Browse files
committed
Update ansible scripts and readme
1 parent c726b90 commit e97ab62

File tree

3 files changed

+28
-18
lines changed

3 files changed

+28
-18
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ NIXOSREBUILD.switch = sudo nixos-rebuild switch --flake ".$(POUND)$(HOST)"
2626
NIXOSREBUILD.bootloader = $(NIXOSREBUILD.switch) --install-bootloader
2727
nixos-rebuild = $(NIXOSREBUILD.$(word 2,$(subst -, ,$1)))
2828

29-
ANSIBLEPLAYBOOK ?= ansible-playbook -i inventory
30-
3129
pull:
3230
git pull --rebase --autostash
3331

@@ -109,4 +107,4 @@ ansible-inventory-hosts:
109107
cd ansible && ansible-vault edit inventory/hosts.yml
110108

111109
ansible-deploy:
112-
cd ansible && $(ANSIBLEPLAYBOOK) site.yml --extra-vars deployment=$(DEPLOYMENT)
110+
cd ansible && ansible-playbook services.yml --extra-vars services=$(SERVICES)

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# nixos tasks
2+
3+
## nixos switch to new configuration
4+
5+
```
6+
make nixos-switch
7+
```
8+
9+
# ansible tasks
10+
11+
## Install ansible dependencies
12+
13+
```
14+
make ansible-requirements
15+
```
16+
17+
## Change hosts configuration
18+
19+
```
20+
make ansible-inventory-hosts
21+
```
22+
23+
## Run deployment tasks
24+
25+
```
26+
make SERVICES=tailscale ansible-deploy
27+
```

ansible/README.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)