Ansible modules to pull info from checkpoint firewall

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

what ansible version are you using?

2.8.1, i am running scripts using AWX.

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

try adding gather_facts: False like

– host: all
gather_facts: False

then try again.

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}

Hi Kethan,

I am having same issue, Is this resolved?