A simple homework for Ansible playbook.
The task can be found here in Czech.
- Debian GNU/Linux 9.9.0
- Ansible
- ansible-playbook 2.8.1
- superuser
root
has ssh key pair- generated via
ssh-keygen
- stored in
<root's home>/.ssh/
id_rsa.pub
id_rsa
- generated via
- netfilter-persistent apt package
- packages.debian.org/en/stretch/netfilter-persistent
- NOTE: this will be installed via Ansible playbook here
The Ansible playbook requires root privileges. Run the following commands as root.
# reset policies and flush all rules for all chains of IPv4 and IPv6
./reset-net.sh
# list policies and all rules for all chains of IPv4 and IPv6
./list-net.sh
# run Ansible playbook
ansible-playbook playbook.yml
# list policies and all rules for all chains of IPv4 and IPv6
./list-net.sh