sensu / sensu.sensu_go / 0.3.0 / module / sensu_go_role Manages Sensu roles | "added in version" 0.1.0 of sensu.sensu_go" Authors: Paul Arthur (@flowerysong) preview | supported by communitysensu.sensu_go.sensu_go_role (0.3.0) — module
Install with ansible-galaxy collection install sensu.sensu_go:==0.3.0
collections: - name: sensu.sensu_go version: 0.3.0
For more information, refer to the Sensu documentation: U(https://docs.sensu.io/sensu-go/latest/reference/rbac/)
- name: Create new role sensu_go_role: name: readonly namespace: default rules: - verbs: - get - list resources: '*'
- name: Create new cluster role sensu_go_role: name: asset-manager cluster: true rules: - verbs: '*' resources: assets
url: default: http://localhost:8080 description: - Location of the Sensu backend API. If this is not set the value of the SENSU_BACKEND_URL environment variable will be checked. type: str name: description: - The Sensu object's name. required: true 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 rules: description: - Role rules type: list state: choices: - present - absent default: present description: - Target state of the Sensu object. type: str cluster: default: false description: - Operate against cluster roles instead of namespaced roles type: bool 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 namespace: default: default description: - RBAC namespace to operate in. type: str