container-server/tasks/host.yml

37 lines
1 KiB
YAML
Raw Normal View History

version: "3"
tasks:
iptables:
desc: Print iptables
cmds:
- iptables -vnL
awall-activate:
desc: Activate awall rules and restart docker daemon
cmds:
- awall translate --verify
- awall activate
- service docker restart
update-task:
desc: Download latest Taskfile binary
cmds:
- sh -c "$(wget https://taskfile.dev/install.sh -O -)" -- -d -b .
install-task:
desc: Install Taskfile system wide
cmds:
- sh -c "$(wget https://taskfile.dev/install.sh -O -)" -- -d -b /usr/bin
install-completion:
desc: Add Taskfile zsh completion
cmds:
- mkdir -p /usr/local/share/zsh/site-functions
- wget -O /usr/local/share/zsh/site-functions/_task https://raw.githubusercontent.com/go-task/task/master/completion/zsh/_task
install-rmate:
desc: Install rmate shell script
cmds:
- sudo wget -O /usr/local/bin/rmate https://raw.githubusercontent.com/textmate/rmate/master/bin/rmate
- sudo chmod a+x /usr/local/bin/rmate