31 lines
947 B
Markdown
31 lines
947 B
Markdown
# Role `secrets`
|
|
|
|
Allows storing the given secret contents in the configured files.
|
|
|
|
## Supported Distributions
|
|
|
|
Should work on Debian-based distributions.
|
|
|
|
## Required Arguments
|
|
|
|
None.
|
|
|
|
## Optional Arguments
|
|
|
|
- `secrets__secrets`: List of secrets.
|
|
Defaults to the empty list (`[ ]`).
|
|
- `secrets__secrets.*.name`: (File)name for the secret (in the `/etc/ansible_secrets` directory).
|
|
- `secrets__secrets.*.content`: The secret content to store.
|
|
- `secrets__secrets.*.owner`: The owner of the secret file.
|
|
Defaults to `root`.
|
|
- `secrets__secrets.*.group`: The group of the secret file.
|
|
Defaults to `root`.
|
|
- `secrets__secrets.*.mode`: The mode of the secret file.
|
|
Defaults to `0640`.
|
|
- `secrets__folder.owner`: The owner of `/etc/ansible_secrets`.
|
|
Defaults to `root`.
|
|
- `secrets__folder.group`: The group of `/etc/ansible_secrets`.
|
|
Defaults to `root`.
|
|
- `secrets__folder.mode`: The mode of `/etc/ansible_secrets`.
|
|
Defaults to `0750`.
|
|
|