dotfiles/config/scripts/automatrop

11 lines
272 B
Plaintext
Raw Normal View History

2021-06-16 22:54:51 +02:00
#!/usr/bin/env bash
cd ~/.dotfiles/config/automatrop
2021-12-02 10:44:49 +01:00
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 "$@"