Environment setup
Last updated
Was this helpful?
Last updated
Was this helpful?
First off you need an ansible control machine with access to the management interfaces of the firewalls you are intending to configure.This will vary depending on your environment, as an example I will detail how to setup an isolated environment on a fedora(release 31) host. This environment will leverage the paloaltonetworks.panos collection from https://ansible.galaxy.com . Fedora 31 comes with many components preconfigured that will have to be accounted for if you are deploying to prod, for a lab its a quick way to get the environment you need. Fedora 31 ftp mirror: Fedora current:
You will need to define your inventory and set some flags in your ansible.cfg file, the contents of the files for the lab are listed below. Substitute 172.16.100.1 with the ip of your test device. We will be using ~/ansible-lab/ as the folder for our playbooks.
To validate that ansible is installed correctly and can see the collection modules send the following command. The command should pull up the information for the module you are trying to leverage.