community.general.sssd_info module – Check SSSD domain status using D-Bus
Note
This module is part of the community.general collection (version 12.2.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.sssd_info.
New in community.general 12.2.0
Synopsis
Check the online status of SSSD domains, list domains, and retrieve active servers using D-Bus.
Requirements
The below requirements are needed on the host that executes this module.
dbus
Parameters
Parameter |
Comments |
|---|---|
The action to perform. Choices:
|
|
Domain name to check. Required unless When |
|
Required parameter when Optional and ignored for all other actions. At this point, the module supports ONLY the types Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Can run in |
|
Support: none |
Returns details on what has changed (or possibly needs changing in |
|
Platform: posix |
This action requires a system with D-Bus and SSSD running. |
Examples
- name: Check SSSD domain status
community.general.sssd_info:
action: domain_status
domain: example.com
register: sssd_status_result
- name: Get domain list
community.general.sssd_info:
action: domain_list
register: domain_list_result
- name: Get active IPA servers for a domain
community.general.sssd_info:
action: active_servers
domain: example.com
server_type: IPA
register: active_servers_result
- name: List servers for a domain
community.general.sssd_info:
action: list_servers
domain: example.com
server_type: AD
register: list_servers_result
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
List of servers for the specified domain. Returned: when Sample: |
|
Active servers for the specified domain and type. Returned: when Sample: |