dubzland / dubzland.minio / 0.0.2 / module / minio_policy Manages Minio policies Authors: Josh Williams (@t3hpr1m3)dubzland.minio.minio_policy (0.0.2) — module
Install with ansible-galaxy collection install dubzland.minio:==0.0.2
collections: - name: dubzland.minio version: 0.0.2
When the policy does not exist, it will be created.
When the policy does exist and O(state=absent), the policy will be deleted.
When changes are made to the policy, the policy will be updated.
- name: Add a policy to the Minio server dubzland.minio.minio_policy: name: fullaccess data: | { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets" ], "Resource": [ "arn:aws:s3:::*" ] } ] } minio_url: http://localhost:9000 access_key: myuser secret_key: supersekret state: present
data: description: JSON representation of the policy contents. required: true type: str name: description: Name of the policy to be managed. required: true type: str state: choices: - present - absent default: present description: - Indicates the desired policy state. - V(present) ensures the policy is present. - V(absent) ensures the policy is absent. type: str minio_url: description: Minio Server URL. required: true type: str access_key: description: Minio access key use to connect to the instance. required: true type: str secret_key: description: Minio secret key use to connect to the instance. required: true type: str