setup minio automation #229
1 changed files with 1 additions and 9 deletions
|
@ -8,20 +8,12 @@
|
|||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: create needed files
|
||||
ansible.builtin.file:
|
||||
path: "{{ minio_config_dir }}/{{ item.name }}"
|
||||
state: touch
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
loop: "{{ minio_policies }}"
|
||||
|
||||
- name: create policy files
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ minio_config_dir }}/{{ item.name }}"
|
||||
block: "{{ item.policy }}"
|
||||
state: present
|
||||
create: true
|
||||
loop: "{{ minio_policies }}"
|
||||
|
||||
- name: setup minio policies
|
||||
|
|
Loading…
Reference in a new issue