- CheckMates
- :
- Products
- :
- Developers
- :
- Ansible
- :
- Re: ansible-playbook --diff --check parameters are...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ansible-playbook --diff --check parameters are not working
Hello ansible users!
I used --check for an ansible-playbook (check_point.gaia.cp_gaia_password_policy). Ansible should just check it and not change anything. I was surprised that the configuration has been changed.
Also --diff didn't show any changes.
Are those parameters not available? How can we use ansible in production if you can not check which changes will be made during the next run?
Bye
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Daniel, From a quick check, it seems that Gaia Collection doesn't support that, although it's documented as it's supported. (Sorry for that)
We will check that and add it to our roadmap for adding/fixing this support in the next releases.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the playbook you were running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried it with
- name: OS Modification
gather_facts: false
hosts: all
connection: httpapi
tasks:
- name: Change password policy
check_point.gaia.cp_gaia_password_policy:
lock_settings: {
'password_expiration_days': 60
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe @Eden_Brillant has a suggestion here, but it seems like this might be a bug.
What version of management is involved here as well as the version of the Ansible Gaia Collection used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@PhoneBoy wrote:
What version of management is involved here as well as the version of the Ansible Gaia Collection used.
The gateway is R81.20. Or which version do you mean with management? I use check_point.gaia....
Ansible collections are
$ ansible-galaxy collection list |grep check
check_point.gaia 7.0.0
check_point.mgmt 6.3.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Majd_Sharkia for GAIA collection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From the source --check should be supported
https://github.com/CheckPointSW/CheckPointAnsibleGAIACollection/blob/v7.0.0/plugins/modules/cp_gaia_...
And cp_gaia_snmp_user is also not working (and documented with cp_snmp_gaia_user) 😪
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Daniel, From a quick check, it seems that Gaia Collection doesn't support that, although it's documented as it's supported. (Sorry for that)
We will check that and add it to our roadmap for adding/fixing this support in the next releases.
