Skip to content

Commit

Permalink
fix: protect against errors in license check
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed Dec 20, 2023
1 parent c7513f1 commit 70b7441
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
- name: 'Register host with CrowdStrike (darwin)'
become: true
raw: '/Applications/Falcon.app/Contents/Resources/falconctl license {{ falcon_customer_id }}'
register: result
when: inventory_hostname is search(item.hostname)
loop: "{{ mac }}"
failed_when: "Error: This machine is already licensed" in result.stdout
...

0 comments on commit 70b7441

Please sign in to comment.