dd
This commit is contained in:
parent
73a4e1d824
commit
18d70c1a7d
1 changed files with 13 additions and 1 deletions
|
@ -8,6 +8,15 @@
|
|||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: create needed files
|
||||
ansible.builtin.file:
|
||||
path: "{{ minio_config_dir }}"
|
||||
state: touch
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
loop: "{{ minio_policies }}"
|
||||
|
||||
- name: create policy files
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ minio_config_dir }}/{{ item.name }}"
|
||||
|
@ -22,3 +31,6 @@
|
|||
- name: Assign MinIO policies to users
|
||||
ansible.builtin.command: "{{ minio_client_bin }} --dp admin policy attach {{ item.1 }} --user {{ item.0.name }}"
|
||||
loop: "{{ minio_users | subelements('policies') }}"
|
||||
|
||||
# ensure absent files are removed
|
||||
# deletata to localhost
|
||||
|
|
Loading…
Reference in a new issue