setup minio automation #229

Merged
mg merged 114 commits from minio_automation into master 2024-11-09 22:00:58 +01:00
2 changed files with 5 additions and 11 deletions
Showing only changes of commit 1df0a08382 - Show all commits

View file

@ -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

View file

@ -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