This is a set of modules to allow you to configure FRR on pfSense firewalls with ansible.
This collection requires ansible-core 2.14 or later.
To install:
ansible-galaxy collection install pfsensible.frr
Optionally, you can specify the path of the collection installation with the -p option.
ansible-galaxy collection install pfsensible.frr -p ./collections
Additionally, you can set the collections_paths option in your ansible.cfg file to automatically designate install locations.
# ansible.cfg
[defaults]
collections_paths=collectionsCurrent versions of ansible should automatically detect the version of Python on the pfSense system. If Python discovery fails, you can set ansible_python_interpreter in your playbook or hosts vars, e.g.:
ansible_python_interpreter: /usr/local/bin/python3.11
Modules must run as root in order to make changes to the system. By default pfSense does not have sudo capability so become will not work. You can install it with:
- name: "Install packages"
package:
name:
- pfSense-pkg-sudo
state: present
and then configure sudo so that your user has permission to use sudo.
This package assumes that the FRR pfSense package has been installed.
- name: Install the pfSense FRR package
package:
name:
- pfSense-pkg-frr
state: present
The following modules are currently available:
- pfsense_frr manages FRR Global and Zebra settings, including route handling.
- pfsense_frr_bgp manages BGP router settings, redistribution, and announced networks.
- pfsense_frr_bgp_advanced manages BGP advanced settings, including aggregate addresses, dampening, and best path selection.
- pfsense_frr_bgp_neighbor manages BGP neighbors and peer groups, including passwords, filters, and timers.
- pfsense_frr_ospf manages IPv4 OSPF, including networks and redistribution.
- pfsense_frr_ospf_area manages areas, route filtering, and area summaries.
- pfsense_frr_ospf_interface manages interface settings, authentication, and timers.
- pfsense_frr_prefix_list manages IPv4 and IPv6 prefix lists and their entries.
GPLv3.0 or later