1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

htpasswd: minor updates in the docs (#6840)

* htpasswd: minor updates in the docs

* remove double spaces
This commit is contained in:
Alexei Znamensky 2023-07-04 07:25:32 +12:00 committed by GitHub
parent 92ea63e20b
commit b6883492c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,13 +26,13 @@ options:
required: true required: true
aliases: [ dest, destfile ] aliases: [ dest, destfile ]
description: description:
- Path to the file that contains the usernames and passwords - Path to the file that contains the usernames and passwords.
name: name:
type: str type: str
required: true required: true
aliases: [ username ] aliases: [ username ]
description: description:
- User name to add or remove - User name to add or remove.
password: password:
type: str type: str
required: false required: false
@ -44,10 +44,10 @@ options:
required: false required: false
default: "apr_md5_crypt" default: "apr_md5_crypt"
description: description:
- Encryption scheme to be used. As well as the four choices listed - Encryption scheme to be used. As well as the four choices listed
here, you can also use any other hash supported by passlib, such as here, you can also use any other hash supported by passlib, such as
V(portable_apache22) and V(host_apache24); or V(md5_crypt) and V(sha256_crypt), V(portable_apache22) and V(host_apache24); or V(md5_crypt) and V(sha256_crypt),
which are Linux passwd hashes. Only some schemes in addition to which are Linux passwd hashes. Only some schemes in addition to
the four choices below will be compatible with Apache or Nginx, and the four choices below will be compatible with Apache or Nginx, and
supported schemes depend on passlib version and its dependencies. supported schemes depend on passlib version and its dependencies.
- See U(https://passlib.readthedocs.io/en/stable/lib/passlib.apache.html#passlib.apache.HtpasswdFile) parameter C(default_scheme). - See U(https://passlib.readthedocs.io/en/stable/lib/passlib.apache.html#passlib.apache.HtpasswdFile) parameter C(default_scheme).
@ -58,15 +58,15 @@ options:
choices: [ present, absent ] choices: [ present, absent ]
default: "present" default: "present"
description: description:
- Whether the user entry should be present or not - Whether the user entry should be present or not.
create: create:
required: false required: false
type: bool type: bool
default: true default: true
description: description:
- Used with O(state=present). If specified, the file will be created - Used with O(state=present). If V(true), the file will be created
if it does not already exist. If set to V(false), will fail if the if it does not exist. Conversely, if set to V(false) and the file
file does not exist does not exist it will fail.
notes: notes:
- "This module depends on the C(passlib) Python library, which needs to be installed on all target systems." - "This module depends on the C(passlib) Python library, which needs to be installed on all target systems."
- "On Debian, Ubuntu, or Fedora: install C(python-passlib)." - "On Debian, Ubuntu, or Fedora: install C(python-passlib)."