Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update description to include ref to new lookup #505

Merged
Merged
Show file tree
Hide file tree
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
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
Loading