Note
This module is part of the community.general collection (version 10.7.3).
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.
To use it in a playbook, specify: community.general.consul_acl_bootstrap.
New in community.general 8.3.0
Parameter | Comments |
|---|---|
bootstrap_secret string | The secret to be used as secret ID for the initial token. Needs to be an UUID. |
ca_path string | The CA bundle to use for https connections. |
host string | Host of the Consul agent. Default: |
port integer | The port on which the consul agent is running. Default: |
scheme string | The protocol scheme on which the Consul agent is running. Defaults to Default: |
state string | Whether the token should be present or absent. Choices:
|
validate_certs boolean | Whether to verify the TLS certificate of the Consul agent. Choices:
|
Attribute | Support | Description |
|---|---|---|
check_mode | Support: none | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
- name: Bootstrap the ACL system
community.general.consul_acl_bootstrap:
bootstrap_secret: 22eaeed1-bdbd-4651-724e-42ae6c43e387
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
result dictionary | The bootstrap result as returned by the Consul HTTP API. Note: If Returned: changed Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/consul_acl_bootstrap_module.html