dd
This commit is contained in:
parent
af0e588d58
commit
1df0a08382
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_client_release: ""
|
||||
minio_client_bin: /usr/local/bin/mc
|
||||
minio_print_keys: true # zeige secret in playbook
|
||||
|
||||
# --dp ausschreiben
|
||||
|
||||
|
|
|
@ -44,17 +44,10 @@
|
|||
when: "'Access Keys:' not in item.stdout"
|
||||
register: new_keys
|
||||
|
||||
- name: Debug Print users with access keys
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ item.stdout }}"
|
||||
loop: "{{ new_keys.item }}"
|
||||
|
||||
- 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
|
||||
|
||||
- name: Print all access keys (is set to true)
|
||||
ansible.builtin.command: "{{ minio_client_bin }} --dp admin accesskey list {{ minio_root_alias }} --all"
|
||||
when: minio_print_keys
|
||||
# verschieben ans ende
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue