Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plomosits Pfsense Collection

This repository contains the plomosits.pfsense Ansible Collection.

Inspired by pfsensible.core project, I'm working on a collection that does not require any prerequisites on the pfsense target.

Tested with Ansible and pfsense

Tested with ansible-core >=2.14 releases and the current development version of ansible-core and pfsense >=2.7.2.

External requirements

Some modules and plugins require external libraries. Please check the requirements for each plugin or module you use in the documentation to find out which requirements are needed.

Included content

Please check the included content on the Ansible Galaxy page for this collection.

Using this collection

The version of the collection is aligned to the version of pfsense. The idea behind is to support different releases of pfsense. So if you have using pfsense v2.7.2 you can use this collection with the same version or version below.

pfsense plomosits.pfsense
2.7.2 <= x < 2.8.0 2.7.2
2.8.x 2.8.0
ansible-galaxy collection install plomosits.pfsense:==X.Y.Z

You can also include it in a requirements.yml file and install it via ansible-galaxy collection install -r requirements.yml using the format:

collections:
  - name: plomosits.pfsense
    version: X.Y.Z

See Ansible Using collections for more details.

Sample Configuration

# inventory.yaml
firewalls:
  hosts:
    pfsense:
      ansible_host: 192.168.1.1
      ansible_user: admin
      ansible_password: pfsense
      
      ansible_connection: httpapi
      ansible_network_os: plomosits.pfsense.pfsense
      ansible_httpapi_port: 443
      ansible_httpapi_use_ssl: yes
      ansible_httpapi_validate_certs: no
# playbooks/reboot.yaml
- name: pfSense Reboot
  hosts: all
  gather_facts: false

  collections:
    - plomosits.pfsense

  tasks:
    - name: Reboot
      pfsense_reboot:
        mode: reboot

run

ansible-playbook -i inventory.yaml playbooks/reboot.yaml

Modules

The following modules are currently available:

More information

Licensing

GNU General Public License v3.0 or later.

See LICENSE to see the full text.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages