Hello Soniya,

Thank you for the reply and all the information but here i am looking
specifically for the checkpoint firewall os name which i should mention.
ansible_network _os: ?   (for checkpoint firewall)

Regards
Tribs


On Mon, Jul 29, 2019 at 5:01 PM Soniya panwar <soniyapanwa...@gmail.com>
wrote:

>
> Hello Tribhuvan Yadav
>
> ansible_network_os informs Ansible which Network platform the hosts
> corresponds to. This is required when using ansible_connection=network_cli.
> For network_cli connection methods the ansible_network_os variable must
> be set. This variable informs Ansible which network platform each host
> corresponds to. For example, if the device is a Juniper router,
> ansible_network_os must be set to junos. This can be set as a variable or
> even within the inventory itself (as shown above). Refer to the following
> table for the networking platforms corresponding ansible_network_os
>  parameter:
>
> [image: x.JPG]
>
>
>
>
>
>
>
>
>
>
> you can use ansible_network_os in an inventory. for example:
>
> [ios]
> ios01.example.net
>
>
> [ios:vars]
> ansible_connection=network_cli
> ansible_user=username
> ansible_become=yes
> ansible_become_method=enable
> ansible_network_os=ios
> or directly in playbook
>
>
> Or you can use ansible_network_os in playbooks. For example:
>
> - name: Gather facts (ops)
>   ios_facts:
>   when: ansible_network_os == 'ios'
>
>
> Please revert in case of any query.
>
> Thanks
> Soniya
>
>
> On Saturday, July 27, 2019 at 9:22:09 PM UTC+5:30, Tribhuvan Yadav wrote:
>>
>> any idea what should be the ansible_network_os for checkpoint. I am
>> getting below error while running my playbook
>>
>> TASK [SHOW COMMAND]
>> *************************************************************************************************************************************************************************
>> fatal: [HQFW]: FAILED! => {"msg": "Unable to automatically determine host
>> network os. Please manually configure ansible_network_os value for this
>> host"}
>>
>>
>> my default shell is bash.
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/3f6062e9-8901-44da-a721-9dcfeacdd6d6%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/3f6062e9-8901-44da-a721-9dcfeacdd6d6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAC-KYfS%2BtVaLi6Vxk8voUOOpzdKd5xMT3su9U6s5ZX9GzNtnDQ%40mail.gmail.com.

Reply via email to