Skip to content
Snippets Groups Projects
Commit 8fd3ee67 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Add s3fs role

parent a94544a0
No related branches found
No related tags found
No related merge requests found
---
- name: Install s3fs
apt:
name: s3fs
- name: Configure s3fs credentials
template:
src: passwd-s3fs.j2
dest: /etc/passwd-s3fs
mode: "0640"
owner: root
group: root
- name: Configure s3fs mountpoints
mount:
fstype: fuse.s3fs
opts: "{{ item.opts|join(',') }}"
path: "/s3fs/{{ item.mountpoint|default(item.bucket) }}"
src: "{{ item.bucket }}"
state: mounted
loop: "{{ s3fs }}"
{% for i in s3fs -%}
{{ i.bucket }}:{{ i.accesskey }}:{{ i.secret }}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment