Ansible modules to pull info from checkpoint firewall

34 views
Skip to first unread message

Kethan R

unread,
Jun 13, 2019, 11:21:41 AM6/13/19
to Ansible Project
Need some sample ansible playbooks to pull info from checkpoint firewall servers...

Jonathan Lozada De La Matta

unread,
Jun 13, 2019, 11:27:05 AM6/13/19
to ansible...@googlegroups.com
what ansible version are you using?

On Thu, Jun 13, 2019 at 11:21 AM Kethan R <ketha...@gmail.com> wrote:
Need some sample ansible playbooks to pull info from checkpoint firewall servers...

--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d618a815-fecc-4b98-90e9-9d61021cd3df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Automation Practice

Senior Automation Consultant & Automation CoP Manager

Red Hat


 

Kethan R

unread,
Jun 13, 2019, 11:30:51 AM6/13/19
to Ansible Project
2.8.1, i am running scripts using AWX.

On Thursday, June 13, 2019 at 10:27:05 AM UTC-5, Jonathan Lozada De La Matta wrote:
what ansible version are you using?

On Thu, Jun 13, 2019 at 11:21 AM Kethan R <ketha...@gmail.com> wrote:
Need some sample ansible playbooks to pull info from checkpoint firewall servers...

--
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...@googlegroups.com.

Kethan R

unread,
Jun 13, 2019, 11:35:59 AM6/13/19
to Ansible Project
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

Jonathan Lozada De La Matta

unread,
Jun 13, 2019, 11:48:13 AM6/13/19
to ansible...@googlegroups.com
try adding gather_facts: False like

-- host: all
    gather_facts: False

then try again.

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Kethan R

unread,
Jun 13, 2019, 11:53:12 AM6/13/19
to Ansible Project
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}

rajthecomputerguy

unread,
Jul 18, 2020, 11:43:33 PM7/18/20
to Ansible Project
Hi Kethan,

I am having same issue, Is this resolved?
Reply all
Reply to author
Forward
0 new messages