# What would be the checkpoint firewall ansible\_network\_os

**URL:** <https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886>\
**Category:** Ansible Project\
**Created:** [July 27, 2019, 3:52pm UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886 "2019-07-27T15:52:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tribhuvan\_Yadav](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@Tribhuvan\_Yadav](https://forum.ansible.com/u/Tribhuvan_Yadav)\
**Post date:** [July 27, 2019, 3:52pm UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886/1 "2019-07-27T15:52:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Soniya\_panwar](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Soniya\_panwar](https://forum.ansible.com/u/Soniya_panwar)\
**Post date:** [July 29, 2019, 11:33am UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886/2 "2019-07-29T11:33:31Z")

</div>

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. Refer to the following table for the networking platforms corresponding ansible\_network\_os parameter:

 ![x.JPG](https://us1.discourse-cdn.com/ansible/original/2X/4/4d331fba1e01b9236d3092fb291743abad377de1.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Tribhuvan\_Yadav](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@Tribhuvan\_Yadav](https://forum.ansible.com/u/Tribhuvan_Yadav)\
**Post date:** [July 29, 2019, 11:40am UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886/3 "2019-07-29T11:40:56Z")

</div>

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

> **(attachments)**
>
> ![x.JPG](https://us1.discourse-cdn.com/ansible/original/2X/4/4d331fba1e01b9236d3092fb291743abad377de1.jpeg)

---

<div class="post-metadata">

**Author:** ![ganeshrn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ganeshrn/32/1021_2.png) [@ganeshrn](https://forum.ansible.com/u/ganeshrn)\
**Post date:** [July 29, 2019, 11:41am UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886/4 "2019-07-29T11:41:17Z")

</div>

Try with:

ansible\_connection=httpapi ansible\_network\_os=checkpoint

---

<div class="post-metadata">

**Author:** ![Tribhuvan\_Yadav](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@Tribhuvan\_Yadav](https://forum.ansible.com/u/Tribhuvan_Yadav)\
**Post date:** [July 29, 2019, 12:32pm UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886/5 "2019-07-29T12:32:11Z")

</div>

Hello Ganesh,

Below error is coming when using httpapi:

TASK [trib\_role : SHOW CONFIG] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [firewall]: FAILED! =\> {“msg”: “unable to load API plugin for network\_os checkpoint”}  
to retry, use: --limit @/etc/ansible/cp1.retry

When i am using network\_cli then below error is coming:

-bash-4.2$ ansible-playbook cp2.yml

PLAY [CheckPoint health Status] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [checkpoint healthcheck commands] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [firewall]: FAILED! =\> {“msg”: “unable to set terminal parameters”}

My Playbooks: (Playbook 1)

in /etc/ansible directory:

---

<div class="post-metadata">

**Author:** ![ganeshrn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ganeshrn/32/1021_2.png) [@ganeshrn](https://forum.ansible.com/u/ganeshrn)\
**Post date:** [July 29, 2019, 2:02pm UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886/6 "2019-07-29T14:02:58Z")

</div>

Checkpoint module shipped with ansible/ansible does not support cli\_command/cli\_config modules or connection=network\_cli  
Refer the supported checkpoint module here: [https://docs.ansible.com/ansible/latest/modules/list\_of\_network\_modules.html#checkpoint](https://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html#checkpoint)

---

<div class="post-metadata">

**Author:** ![Tribhuvan\_Yadav](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@Tribhuvan\_Yadav](https://forum.ansible.com/u/Tribhuvan_Yadav)\
**Post date:** [July 30, 2019, 2:20am UTC](https://forum.ansible.com/t/what-would-be-the-checkpoint-firewall-ansible-network-os/30886/7 "2019-07-30T02:20:35Z")

</div>

Hello Ganesh,

It does support these modules. I have already tested in my test lab environment.  
It’s just the production where i am getting these error messages and need help.

Regards  
Tribs
