sensu / sensu.sensu_go / 0.9.0 / module / user Manages Sensu users Authors: Paul Arthur (@flowerysong), Aljaz Kosir (@aljazkosir), Tadej Borovsak (@tadeboro) preview | supported by XLAB Steampunksensu.sensu_go.user (0.9.0) — module
Install with ansible-galaxy collection install sensu.sensu_go:==0.9.0
collections: - name: sensu.sensu_go version: 0.9.0
For more information, refer to the Sensu documentation at U(https://docs.sensu.io/sensu-go/latest/reference/users/)
- name: Create a user user: auth: url: http://localhost:8080 name: awesome_username password: hidden_password? groups: - dev - prod
auth: description: - Authentication parameters. Can define each of them with ENV as well. suboptions: namespace: default: default description: - RBAC namespace to operate in. If this is not set the value of the SENSU_NAMESPACE environment variable will be checked. type: str password: default: P@ssw0rd! description: - The Sensu user's password. If this is not set the value of the SENSU_PASSWORD environment variable will be checked. type: str url: default: http://localhost:8080 description: - Location of the Sensu backend API. If this is not set the value of the SENSU_URL environment variable will be checked. type: str user: default: admin description: - The username to use for connecting to the Sensu API. If this is not set the value of the SENSU_USER environment variable will be checked. type: str type: dict name: description: - The Sensu object's name. required: true type: str state: choices: - enabled - disabled default: enabled description: - Desired state of the user. - Users cannot actually be deleted, only deactivated. type: str groups: description: - List of groups user belongs to. type: list password: description: - Password for the user. type: str
object: description: object representing Sensu user returned: success type: dict