2024-06-18 11:35:10 +02:00
|
|
|
ansible_run = ansible-playbook --inventory localhost, --diff ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
2017-09-02 19:48:01 +02:00
|
|
|
|
2022-06-30 06:38:05 +02:00
|
|
|
.PHONY: all
|
2022-07-01 20:03:36 +02:00
|
|
|
all:
|
2022-06-30 06:38:05 +02:00
|
|
|
$(ansible_run)
|
|
|
|
|
|
2022-05-02 20:16:22 +02:00
|
|
|
.PHONY: config
|
2022-07-01 20:03:36 +02:00
|
|
|
config:
|
2025-09-22 11:05:24 +02:00
|
|
|
$(ansible_run)
|
2020-03-03 17:31:48 +01:00
|
|
|
|
2020-10-05 22:00:36 +02:00
|
|
|
.PHONY: reboot
|
|
|
|
|
reboot:
|
|
|
|
|
sudo reboot
|
|
|
|
|
|
|
|
|
|
.PHONY: poweroff
|
|
|
|
|
poweroff:
|
|
|
|
|
sudo poweroff
|
|
|
|
|
|
|
|
|
|
.PHONY: weekend
|
|
|
|
|
weekend: | update poweroff
|
|
|
|
|
|
2020-03-03 17:31:48 +01:00
|
|
|
.PHONY: packages
|
2022-07-01 20:03:36 +02:00
|
|
|
packages:
|
2020-03-03 17:31:48 +01:00
|
|
|
$(ansible_run) --tags packages
|
|
|
|
|
|
|
|
|
|
.PHONY: dotfiles
|
2022-07-01 20:03:36 +02:00
|
|
|
dotfiles:
|
2020-03-03 17:31:48 +01:00
|
|
|
$(ansible_run) --tags dotfiles
|
2018-02-05 20:14:02 +01:00
|
|
|
|
2020-12-08 23:41:35 +01:00
|
|
|
.PHONY: test
|
|
|
|
|
test:
|
|
|
|
|
./test-in-docker.sh
|
2024-11-10 16:08:21 +01:00
|
|
|
|
|
|
|
|
.PHONY: fmt
|
|
|
|
|
fmt:
|
|
|
|
|
git ls-files -z '*.md' | xargs -0 prettier --print-width 80 --prose-wrap always --write
|
|
|
|
|
git ls-files -z '*.toml' | xargs -0 taplo format
|