It's "pfsensible.core.pfsense_alias", not "pfsensible.core.alias". If only there was a message to remind one to check for spelling etc. :)
On Wednesday, February 8, 2023 at 7:13:41 AM UTC-5 Ala Karmous wrote: > 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. > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c05e3663-dfad-4638-b94f-20c17f68e6e7n%40googlegroups.com.
