Skip to content

Commit

Permalink
Merge pull request #505 from carlosmmatos/update-host-descriptions
Browse files Browse the repository at this point in the history
docs: update description to include ref to new lookup
  • Loading branch information
redhatrises authored Apr 30, 2024
2 parents 255446c + 53345ae commit 0838e05
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/modules/host_contain.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
hosts:
description:
- A list of host agent IDs (AIDs) to perform the action on.
- Use the P(crowdstrike.falcon.host_ids#lookup) lookup plugin to get a list of host IDs matching
specific criteria.
type: list
elements: str
required: true
Expand Down Expand Up @@ -68,6 +70,11 @@
- "09876543210987654321"
contained: no
- name: Contain all hosts in RFM
crowdstrike.falcon.host_contain:
hosts: "{{ lookup('crowdstrike.falcon.host_ids', 'reduced_functionality_mode:\"yes\"') }}"
contained: yes
- name: Individually contain hosts within a list
crowdstrike.falcon.host_contain:
auth: "{{ falcon.auth }}" # Use auth saved from crowdstrike.falcon.auth module
Expand Down
6 changes: 6 additions & 0 deletions plugins/modules/host_hide.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
hosts:
description:
- A list of host agent IDs (AIDs) to perform the action on.
- Use the P(crowdstrike.falcon.host_ids#lookup) lookup plugin to get a list of host IDs matching
specific criteria.
type: list
elements: str
required: true
Expand Down Expand Up @@ -73,6 +75,10 @@
- "09876543210987654321"
hidden: false
- name: Hide all stale hosts that have not checked in for 30 days
crowdstrike.falcon.host_hide:
hosts: "{{ lookup('crowdstrike.falcon.host_ids', 'last_seen:<=\"now-30d\"') }}"
- name: Individually hide hosts with a list from the Falcon console
crowdstrike.falcon.host_hide:
auth: "{{ falcon.auth }}" # Use auth saved from crowdstrike.falcon.auth module
Expand Down

0 comments on commit 0838e05

Please sign in to comment.