Add office computer

prenix
Geoffrey Frogeye 2021-12-02 10:44:49 +01:00
parent c8397580ec
commit d065fa6207
4 changed files with 21 additions and 1 deletions

1
config/automatrop/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
self_hostname

View File

@ -0,0 +1,12 @@
root_access: no
display_server: "x11"
dev_stuffs:
- shell
- network
- ansible
- python
extensions:
- gh
x11_screens:
- HDMI-1
- HDMI-2

View File

@ -1,3 +1,4 @@
curacao.geoffrey.frogeye.fr
# triffle.geoffrey.frogeye.fr
pindakaas.geoffrey.frogeye.fr
gho.geoffrey.frogeye.fr ansible_host=localhost ansible_port=2222

View File

@ -1,4 +1,10 @@
#!/usr/bin/env bash
cd ~/.dotfiles/config/automatrop
ansible-playbook --diff playbooks/default.yml --limit $HOSTNAME --connection local "$@"
if [ -f ~/.config/automatrop/self_name ]
then
hostname=$(cat ~/.config/automatrop/self_name)
else
hostname="$HOSTNAME"
fi
ansible-playbook --diff playbooks/default.yml --limit $hostname --connection local "$@"