diff --git a/Taskfile.yml b/Taskfile.yml index 11d9891..75480fe 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -11,13 +11,11 @@ tasks: desc: Install software cmds: - mkdir -p ~/.local/bin - - cp go-task/task ~/.local/bin + - stat ~/.local/bin/task > /dev/null || cp go-task/task ~/.local/bin - sudo cp go-task/task.bash /etc/bash_completion.d - - [[ command -v fail2ban-client ]] || sudo rpm-ostree install fail2ban - sudo cp zerotier/zerotier.repo /etc/yum.repos.d - - [[ command -v zerotier-cli ]] || sudo rpm-ostree install zerotier-one - sudo cp docker/docker-ce.repo /etc/yum.repos.d - - [[ command -v docker compose ]] || sudo rpm-ostree install docker-compose-plugin + - sudo rpm-ostree install --idempotent fail2ban zerotier-one docker-compose-plugin folders: desc: Make folders for server @@ -37,7 +35,7 @@ tasks: f2bs: cmds: - - sudo fail2ban-client get sshd banip --with-time + - #sudo fail2ban-client get sshd banip --with-time - sudo fail2ban-client get bad-auth banip --with-time - df preconditions: @@ -53,6 +51,7 @@ tasks: mailu: desc: Setup fail2ban for mailu frontend cmds: + - sudo systemctl enable --now fail2ban - sudo cp mailu-f2b/fail2ban-bad-auth-filter.conf /etc/fail2ban/filter.d/bad-auth.conf - sudo cp mailu-f2b/fail2ban-bad-auth-jail.conf /etc/fail2ban/jail.d/bad-auth.conf - sudo cp mailu-f2b/fail2ban-docker-action.conf /etc/fail2ban/action.d/docker-action.conf