alkaa/justfile
2024-04-26 09:50:34 +02:00

38 lines
1.1 KiB
Makefile

allTags := "nvim,xmonad,git,scripts"
hostname := `cat /etc/hostname`
default:
just --list
install-dependencies:
ansible-galaxy collection install kewlfft.aur
alias s := setup
setup tags=allTags:
just setup-{{ if hostname == "qwerty" { "qwerty" } else if hostname == "LE-MHO" { "t460p" } else { "x220" } }} "{{ tags }}"
alias c := config
config tags=allTags:
just config-{{ if hostname == "qwerty" { "qwerty" } else if hostname == "LE-MHO" { "t460p" } else { "x220" } }} "{{ tags }}"
setup-qwerty tags=allTags:
ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
config-qwerty tags=allTags:
ansible-playbook site.yml -t "pc,qwerty,{{tags}}" --skip-tags "setup"
setup-x220 tags=allTags:
ansible-playbook site.yml -K -t "pc,x220,{{tags}}"
config-x220 tags=allTags:
ansible-playbook site.yml -t "pc,x220,{{tags}}" --skip-tags "setup"
setup-t460p tags=allTags:
ansible-playbook site.yml -K -t "pc,t460p,{{tags}}"
config-t460p tags=allTags:
ansible-playbook site.yml -t "pc,t460p,{{tags}}" --skip-tags "setup"
sync-server tags=allTags:
ansible-playbook site.yml -K -t "server,{{tags}}"