"ansible_checkpoint_domain" variable doesn't work.
gmoraa opened this issue · comments
According to the existing documentation you can switch domains by making use of the variable "ansible_checkpoint_domain" but that doesn't work, instead what's happening is the API calls are going locally.
Apparently my parameters are be fine because if I try the same from Postman the changes are reflected as expected.
ansible 2.9.7
- name: example_playbook
hosts: check_point
connection: httpapi
tasks:
- name: set-service-tcp
cp_mgmt_service_tcp:
name: %SERVICE%
...
auto_publish_session: yes
vars:
ansible_checkpoint_domain: "%DOMAIN%"
@chkp-orso "api-server-version": "1.5"
@gmoraa Thanks, but this is the version of the API server.
I meant do you use the Ansible core or the collection?
If you use the collection, which version?
Hi,
We have the same issue here with Ansible 2.9.10 and Checkpoint R80.40.
Is there any solution to specify domain in MDS environment ?
@gmoraa Thanks, but this is the version of the API server.
I meant do you use the Ansible core or the collection?
If you use the collection, which version?
@chkp-orso Sorry for the late reply, I missed your message. I am using Ansible Core 2.9.7 and CheckPoint R80.30.
Let me know if more details are required.
Hi,
I am facing the same problem when using the included collection in Ansible 2.9.7.
When Im using the Collection explicitly (version 1.0.5), its working.
I thought that I would also need to include the collection with
collections:
- check_point.mgmt
or use
check_point.mgmt.MODULE
instead of MODULE
but it looks like only changing
ansible_network_os: checkpoint
to ansible_network_os: check_point.mgmt.checkpoint
is enough.
Hi,
That's OK @gmoraa :)
@gmoraa @Arenaos You need to use the latest version of the collection.
@alex-barth I highly recommand that you use also the collections' modules (with your trick you use only the collection plugin)
Thanks,
Or
When Im using the Collection explicitly (version 1.0.5), its working.
so, you are saying that you need to install an "extra" collection ?
Because i tried to simply replace ansible_network_os: checkpoint to ansible_network_os: check_point.mgmt.checkpoint not enough...
@alex-barth
I'm not sure I understood your question.
But at the bottom line you just need to use the collection.
But at the bottom line you just need to use the collection.
The collection is not natively installed with ansible 2.9?
No :(
So, the native modules in Ansible 2.9 stands for what purpose ? I have also installed the SDK module check_point_mgmt from your GitHub https://github.com/CheckPointSW/cpAnsible . Have you documentation for the installation ?
Thanks !
you don't need https://github.com/CheckPointSW/cpAnsible
you just need this collection
@alex-barth I highly recommand that you use also the collections' modules (with your trick you use only the collection plugin)
Yes, sorry for creating confusion, I just wanted to narrow down the problem. I am actually also using the collection modules.
Thanks
Alex
Thank you for using our Ansible-Check Point integration.