Tip

Check out the repository on GitHub

1 - Installation

Ansible

See the documentation on how to install Ansible.

Dependencies

The httpx python module is used for API communications!

python3 -m pip install --upgrade httpx

Collection

# stable version:
ansible-galaxy collection install ansibleguy.opnsense

# latest version:
ansible-galaxy collection install git+https://github.com/ansibleguy/collection_opnsense.git

# install to specific directory for easier development
cd $PLAYBOOK_DIR
ansible-galaxy collection install git+https://github.com/ansibleguy/collection_opnsense.git -p ./collections