# Ansible modules to pull info from checkpoint firewall

**URL:** <https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564>\
**Category:** Ansible Project\
**Created:** [June 13, 2019, 3:21pm UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564 "2019-06-13T15:21:41Z")\
**Posts on this page:** 7\
**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 13, 2019, 3:21pm UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564/1 "2019-06-13T15:21:41Z")

</div>

Need some sample ansible playbooks to pull info from checkpoint firewall servers…

---

<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 13, 2019, 3:26pm UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564/2 "2019-06-13T15:26:43Z")

</div>

what ansible version are you using?

---

<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 13, 2019, 3:30pm UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564/3 "2019-06-13T15:30:51Z")

</div>

2.8.1, i am running scripts using AWX.

---

<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 13, 2019, 3:35pm UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564/4 "2019-06-13T15:35:59Z")

</div>

This is the error:  
fatal: [xxxxxx]: FAILED! =\> {“ansible\_facts”: {}, “changed”: false, “msg”: “The following modules failed to execute: setup\n setup: The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error\n”}  
This is the playbook

- hosts: all  
tasks:
- name: Run script  
checkpoint\_run\_script:  
script\_name: “List root”  
script: ls -l /  
targets:
- mycheckpointgw

If any modification to this play book or if you have different module both ok for me

---

<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 13, 2019, 3:47pm UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564/5 "2019-06-13T15:47:51Z")

</div>

try adding gather\_facts: False like

– host: all  
gather\_facts: False

then try again.

---

<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 13, 2019, 3:53pm UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564/6 "2019-06-13T15:53:11Z")

</div>

no Luck.

[WARNING]: sftp transfer mechanism failed on [xxxxx]. Use ANSIBLE\_DEBUG=1

19  
to see detailed information

20

21  
[WARNING]: No python interpreters found for host xxxxxx(tried

22  
[‘/usr/bin/python’, ‘python3.7’, ‘python3.6’, ‘python3.5’, ‘python2.7’,

23  
‘python2.6’, ‘/usr/libexec/platform-python’, ‘/usr/bin/python3’, ‘python’])

24

25  
fatal: [xxxxx]: FAILED! =\> {“ansible\_facts”: {“discovered\_interpreter\_python”: “/usr/bin/python”}, “changed”: false, “module\_stderr”: “Shared connection to xxxxx closed.\r\n”, “module\_stdout”: “/bin/sh: /usr/bin/python: No such file or directory\r\n”, “msg”: “The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error”, “rc”: 127}

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [July 19, 2020, 3:43am UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564/7 "2020-07-19T03:43:32Z")

</div>

Hi Kethan,

I am having same issue, Is this resolved?
