community.general.sssd_info module – Check SSSD domain status using D-Bus
Note
This module is part of the community.general collection (version 12.6.1).
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
- SSSD needs to be running
Parameters
Parameter | Comments |
|---|---|
action string / required | The action to perform. Choices:
|
domain string | Domain name to check. Required unless When |
server_type string | Required parameter when Optional and ignored for all other actions. At this point, the module supports ONLY the types Choices:
|
Attributes
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full This action does not modify state. | Can run in |
diff_mode | Support: N/A This action does not modify state. | Returns details on what has changed (or possibly needs changing in |
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 |
|---|---|
domain_list list / elements=string | |
list_servers list / elements=string | List of servers for the specified domain. Returned: when Sample: |
online string | |
servers dictionary | Active servers for the specified domain and type. Returned: when Sample: |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/community/general/sssd_info_module.html