Before we go into the tasks, let's take a look at the variables we will be using. First of all, the content of roles/vyos-firewall/defaults/main.yml:
---motd_asciiart: | ----------------------------- VyOS Ansible Managed Firewall -----------------------------vyos_nameservers: - 8.8.8.8 - 8.8.4.4
Here, we are setting just two key values. The first, motd_asciiart, is a multiline banner that will be configured to be displayed whenever we log in to the VyOS device. We are setting the variable as a multiline by using the | after declaring the key. The next key, vyos_nameservers, is a list of DNS resolvers to use. Here, we are using Google's Public DNS resolvers.
There are some other variables used in the playbook; these can be ...