setup minio automation #229
2 changed files with 5 additions and 11 deletions
|
@ -6,6 +6,7 @@ minio_url: https://s3.mgrote.net
|
||||||
minio_config_dir: /etc/minio
|
minio_config_dir: /etc/minio
|
||||||
minio_client_release: ""
|
minio_client_release: ""
|
||||||
minio_client_bin: /usr/local/bin/mc
|
minio_client_bin: /usr/local/bin/mc
|
||||||
|
minio_print_keys: true # zeige secret in playbook
|
||||||
|
|
||||||
# --dp ausschreiben
|
# --dp ausschreiben
|
||||||
|
|
||||||
|
|
|
@ -44,17 +44,10 @@
|
||||||
when: "'Access Keys:' not in item.stdout"
|
when: "'Access Keys:' not in item.stdout"
|
||||||
register: new_keys
|
register: new_keys
|
||||||
|
|
||||||
- name: Debug Print users with access keys
|
- name: Print all access keys (is set to true)
|
||||||
ansible.builtin.debug:
|
ansible.builtin.command: "{{ minio_client_bin }} --dp admin accesskey list {{ minio_root_alias }} --all"
|
||||||
msg: "{{ item.stdout }}"
|
when: minio_print_keys
|
||||||
loop: "{{ new_keys.item }}"
|
# verschieben ans ende
|
||||||
|
|
||||||
- name: Output newly created access keys
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: "New access key created for user {{ item.item.name }}: {{ item.stdout }}"
|
|
||||||
loop: "{{ new_keys.results }}"
|
|
||||||
when: item.item is defined
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue