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 2 additions and 2 deletions
Showing only changes of commit 4a3c185f20 - Show all commits

View file

@ -16,7 +16,6 @@
# bug:delegate to geht nciht
# no_log überall bei keys und users
# linter
# succssfu/changed_when
# state absent einbauen
- name: include policy tasks

View file

@ -29,10 +29,12 @@
- name: "setup policies (ro)"
ansible.builtin.command: "{{ minio_client_bin }} --dp admin policy create {{ minio_root_alias }} {{ item.name }}_ro {{ minio_config_dir }}/{{ item.name }}_ro"
loop: "{{ minio_buckets }}"
changed_when: false # Befehl gibt immer "Created policy `testbucket3_ro` successfully." aus, unabhängig ob sie schon existiert oder nicht.
- name: "setup policies (rw)"
ansible.builtin.command: "{{ minio_client_bin }} --dp admin policy create {{ minio_root_alias }} {{ item.name }}_rw {{ minio_config_dir }}/{{ item.name }}_rw"
loop: "{{ minio_buckets }}"
changed_when: false # Befehl gibt immer "Created policy `testbucket3_ro` successfully." aus, unabhängig ob sie schon existiert oder nicht.
- name: "remove old policy files"
ansible.builtin.file:
@ -42,4 +44,3 @@
when: '"absent" in item.state'
# deletata to localhost
# changed when überall