Need playbook to run commands on checkpoint firewall

28 views
Skip to first unread message

Kethan R

unread,
Jun 21, 2019, 11:41:42 AM6/21/19
to Ansible Project
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
=============

fatal: [x.x.x.x]: FAILED! => {
950
"changed": true,
951
"cmd": "clish -c \"show configuration\"\n",
952
"delta": "0:00:00.762326",
953
"end": "2019-06-21 04:05:56.002294",
954
"invocation": {
955
"module_args": {
956
"_raw_params": "clish -c \"show configuration\"\n",
957
"_uses_shell": true,
958
"argv": null,
959
"chdir": null,
960
"creates": null,
961
"executable": null,
962
"removes": null,
963
"stdin": null,
964
"stdin_add_newline": true,
965
"strip_empty_ends": true,
966
"warn": true
967
}
968
},
969
"msg": "non-zero return code",
970
"rc": 127,
971
"start": "2019-06-21 04:05:55.239968",
972
"stderr": "/bin/s…
...
=========================






14
[WARNING]: Could not match supplied host pattern, ignoring: any
15
16
17
PLAY [any] *********************************************************************
22:42:11
18
skipping: no hosts matched
19
20

...

Jonathan Lozada De La Matta

unread,
Jun 21, 2019, 11:46:47 AM6/21/19
to ansible...@googlegroups.com
what ansible version and how does the inventory file look like ?

--
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/ae54f711-46df-40e0-85e1-fa7139b89e42%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 21, 2019, 11:54:24 AM6/21/19
to Ansible Project
Ansible version :2.8.1,
Defined checkppoint hostname/IP adress with vailable like --- ansible_connection: network_cli ...


To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages