dotfiles/config/scripts/automatrop

11 lines
272 B
Plaintext
Raw Normal View History

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