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
...
--
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 [email protected].
To post to this group, send email to [email protected].
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.