koichirok.authconfig-module
koichirok.authconfig-module - Ansible authconfig module
This module helps manage system authentication settings using authconfig.
Requirements
- You need to have the
authconfig
package installed.
Installation
You can install the module with the following command:
$ ansible-galaxy install koichirok.authconfig-module
You can then use it in your playbook like this:
# playbook.yml
- hosts: default
roles:
- koichirok.authconfig-module
Overview
This module configures system authentication settings using authconfig(8).
Options
Parameter | Required | Default | Choices | Comments |
---|---|---|---|---|
enablereqlower | No | yes, no | Require at least one lowercase character in a password. | |
enablecachecreds | No | yes, no | Enable or disable caching of user credentials. | |
smbservers | No | List of servers for authentication. | ||
enablerequiresmartcard | No | yes, no | Require smart card for authentication. | |
passalgo | No | descrypt, bigcrypt, md5, sha256, sha512 | Specify the hash algorithm for new passwords. | |
smbsecurity | No | user, server, domain, ads | Set security mode for Samba and Winbind. | |
enablereqdigit | No | yes, no | Require at least one digit in a password. | |
... | ... | ... | ... | ... (more options follow) |
Examples
Here's how to set up LDAP authentication:
- authconfig: enableldap=yes enableldapauth=yes enableldaptls=no
ldapserver=ldap://127.0.0.1/ ldapbasedn=dc=example,dc=com
And to enable caching without starting the caching service:
- authconfig: enablecache=yes nostart=yes
Return Values
Name | Description | Returned | Type | Sample |
---|---|---|---|---|
new_settings_lines | Configuration changes made by the module. | In non-check mode | List | ['caching is disabled', 'nss_files is enabled', ...] |
new_settings | Output of 'authconfig --test' | In non-check mode | String | 'caching is disabled nss_files is enabled ...' |
Notes
- This is an early version, so things might change.
- The behavior depends on the
authconfig --test
command.
License
GPLv3
Installa
ansible-galaxy install koichirok.authconfig-module
Licenza
gpl-3.0
Download
6.3k
Proprietario