Add office computer

This commit is contained in:
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 "$@"