Hi!
I want to remove all members of an object and I could really need some help atm.
To create the object I have the following task (example application site groups)
- name: set application groups
check_point.mgmt.cp_mgmt_application_site_group:
name: "{{ item.Name }}"
comments: "{{ item.Comments }}"
members: "{{ item.Members }}"
with_items: "{{ cp_application_groups }}"
loop: "{{ cp_application_groups if cp_application_groups is iterable else []}}"
A creation was made with the following object
- Name: custom-group
Comments: Custom test
Members:
- File Storage and Sharing
When removing the entry of the members or replace it with an "- []", I get the following error message "Requested object [] not found"
- Name: custom-group
Comments: Custom test
Members:
- [] # or remove it entirely
Can someone help me on this?