- name: install packages on slackware systems ansible.builtin.shell: executable: /bin/bash cmd: | set -e slackpkg install nftables jansson libnftnl iptables libpcap libnl3 dbus-1 slackpkg install daemon bc sbopkg -k -B -i sshguard chmod +x /etc/rc.d/rc.sshguard echo /etc/rc.d/rc.sshguard start >> /etc/rc.d/rc.inet2 creates: /usr/libexec/sshg-fw-nft-sets register: sshguard_install - name: clean-up config on slackware systems ansible.builtin.shell: executable: /bin/bash cmd: | cp -nv /usr/doc/sshguard-*/examples/sshguard.conf.sample /etc/sshguard.conf.dist grep -vE '^#|^$' /etc/sshguard.conf.dist > /etc/sshguard.conf.clean creates: /etc/sshguard.conf.clean - name: setup sshguard on slackware systems ansible.builtin.template: src: sshguard_slackware.yml dest: /etc/sshguard.conf diff: true notify: restart sshguard