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

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 "$@"