htpasswd
Collection: community.general
Full Name: parallax.community.general.htpasswd
Aliases: community.general.htpasswd, htpasswd
Synopsis
Manage htpasswd
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| path | string | yes | Path to the htpasswd file | |
| name | string | yes | User name to add or remove | |
| password | string | Password associated with the user (required if state is present) | ||
| crypt_scheme | string | apr_md5_crypt | Encryption scheme to use Choices: apr_md5_crypt, plaintext, sha1 | |
| state | string | present | Whether the user entry should be present or absent Choices: present, absent | |
| create | bool | true | Create the htpasswd file if it does not exist |
Example
- name: Example htpasswd task
htpasswd:
path: <your_path>
name: <your_name>