Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions tasks/remove_registered_systems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
status_code: 200
delegate_to: localhost
register: jc_registered_systems_json_response
when: jumpcloud_displayName is defined
ignore_errors: yes
when: jumpcloud_api_key is defined
and not jumpcloud_api_key == ""
and jumpcloud_displayName is defined
ignore_errors: true

- name: Set count of inactive registere systems
set_fact:
jc_count_of_inactive_registered_systems: "{{ jc_registered_systems_json_response.json.totalCount }}"
ansible.builtin.set_fact:
jc_count_of_inactive_registered_systems: "{{jc_registered_systems_json_response.json.totalCount}}"
when: jc_registered_systems_json_response.json.totalCount is defined

- name: Delete the registered systems with the same name from JumpCloud
uri:
Expand Down