I’m running on Ansible version 2.15.8 with the latest Check Point MGMT collection, and i noticed that suddenly i cant use the options.
Our httpapi plugin has several options, for example domain (snippet from checkpony.py httpapi plugin)
options:
domain:
type: str
description:
- Specifies the domain of the Check Point device
vars:
- name: ansible_checkpoint_domain
Below is my inventory.ini file content:
[my_hosts]
target_host ansible_connection=httpapi ansible_httpapi_host=172.23.3.10 ansible_host=172.23.3.10 ansible_httpapi_use_ssl=true ansible_httpapi_validate_certs=false ansible_network_os=check_point.mgmt.checkpoint ansible_user=aa ansible_password=aaaa
[my_hosts:vars]
ansible_checkpoint_domain=dom1
and i noticed that when running a playbook the plugin isn’t extracting the option correctly, i’ve added a print of cp_domain and got ‘None’,
but when running the task below in my playbook:
- name: Print inventory variable
ansible.builtin.debug:
var: ansible_checkpoint_domain
i get the correct output
TASK [Print inventory variable] ************************************************************************************************
ok: [target_host] => {
“ansible_checkpoint_domain”: “dom1”
}
I ran my playbook in an ansible 2.12 virtual environment and the options were extracted successfully, when doing so in a different virtual environment version 2.14 it didn’t seem to do so.