dotfiles/config/scripts/automatrop

11 lines
272 B
Bash
Executable file

#!/usr/bin/env bash
cd ~/.dotfiles/config/automatrop
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 "$@"