# Need playbook to run commands on checkpoint firewall

**URL:** <https://forum.ansible.com/t/need-playbook-to-run-commands-on-checkpoint-firewall/30631>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [June 21, 2019, 3:41pm UTC](https://forum.ansible.com/t/need-playbook-to-run-commands-on-checkpoint-firewall/30631 "2019-06-21T15:41:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kethan\_R](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kethan\_R](https://forum.ansible.com/u/Kethan_R)\
**Post date:** [June 21, 2019, 3:41pm UTC](https://forum.ansible.com/t/need-playbook-to-run-commands-on-checkpoint-firewall/30631/1 "2019-06-21T15:41:42Z")

</div>

Can someone help with running some basic show commands on checkpoint firewall from AWX.

I tried many possibilities by googling,but no luck

Need full play.

- hosts: all

connection: network\_cli

tasks:

- name: Get config for VyOS devices  
vyos\_config:  
lines:
- fw ver  
this is my playbook which is not working

Error messages:

===================The full traceback is:

950  
WARNING: The below traceback may _not_ be related to the actual failure.

951  
File “/tmp/ansible\_vyos\_facts\_payload\_kcAvN1/ansible\_vyos\_facts\_payload.zip/ansible/module\_utils/network/vyos/vyos.py”, line 85, in get\_capabilities

952  
capabilities = Connection(module.\_socket\_path).get\_capabilities()

953  
File “/tmp/ansible\_vyos\_facts\_payload\_kcAvN1/ansible\_vyos\_facts\_payload.zip/ansible/module\_utils/connection.py”, line 186, in **rpc**

954  
raise ConnectionError(to\_text(msg, errors=‘surrogate\_then\_replace’), code=code)

955

956  
fatal: [x.x.x.x]: FAILED! =\> {

957  
“changed”: false,

958  
“invocation”: {

959  
“module\_args”: {

960  
“gather\_subset”: [

961  
“!config”

962  
],

963  
“host”: null,

964  
“password”: null,

965  
“port”: null,

966

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [June 21, 2019, 3:46pm UTC](https://forum.ansible.com/t/need-playbook-to-run-commands-on-checkpoint-firewall/30631/2 "2019-06-21T15:46:19Z")

</div>

what ansible version and how does the inventory file look like ?

---

<div class="post-metadata">

**Author:** ![Kethan\_R](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kethan\_R](https://forum.ansible.com/u/Kethan_R)\
**Post date:** [June 21, 2019, 3:54pm UTC](https://forum.ansible.com/t/need-playbook-to-run-commands-on-checkpoint-firewall/30631/3 "2019-06-21T15:54:24Z")

</div>

Ansible version :2.8.1,  
Defined checkppoint hostname/IP adress with vailable like — ansible\_connection: network\_cli …
