thank you, it work
Le jeudi 9 février 2023 à 16:51:29 UTC+1, Todd Lewis a écrit :

> 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/4ff3f4f1-ddf1-4b08-8f47-de8fafee483bn%40googlegroups.com.

Reply via email to