i have installed the modules and i run this playbook : (create a new alias)
---
- name: Add new alias in pfSense
hosts: pfsense
gather_facts: no
vars:
pfsense_api_user: "username"
pfsense_api_pass: "pass"
ansible_python_interpreter: /usr/local/bin/python3.8
tasks:
- name: Install python module pfsense
pip:
name: pfsense
- name: Add new alias
pfsensible.core.alias:
pfsense_host: "
https://hostpfSense"
username: "pfsense_api_user"
password: "pfsense_api_pass"
mode: add_alias
name: " Testing "
type: " host "
address: " 192.168.1.2 "
register: result
- name: Show result
debug:
var: result
and i got this error :
ERROR! couldn't resolve module/action 'pfsensible.core.alias'. This often indicates a misspelling, missing collection, or incorrect module path.