Skip to content

Instantly share code, notes, and snippets.

@gadelkareem
Forked from apeckham/main.yml
Last active October 21, 2016 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gadelkareem/fd034ba64eed1f2426ec21ecdbf4eb71 to your computer and use it in GitHub Desktop.
Save gadelkareem/fd034ba64eed1f2426ec21ecdbf4eb71 to your computer and use it in GitHub Desktop.
---
- include_vars: secrets.yml
- apt: pkg={{ item }} state=present update_cache=yes
with_items:
- build-essential
- mime-support
- libfuse-dev
- libcurl4-openssl-dev
- libxml++2.6-dev
- libssl-dev
- autoconf
- get_url: url=https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.79.tar.gz dest=/tmp/s3fs.tar.gz
- command: tar xvf s3fs.tar.gz chdir=/tmp creates=s3fs-fuse-1.79
- command: ./autogen.sh chdir=/tmp/s3fs-fuse-1.79
- command: ./configure --prefix=/usr chdir=/tmp/s3fs-fuse-1.79 creates=config.status
- command: make chdir=/tmp/s3fs-fuse-1.79 creates=src/s3fs
- command: make install chdir=/tmp/s3fs-fuse-1.79 creates=/usr/local/bin/s3fs
- template: src=passwd-s3fs.j2 dest=/root/.passwd-s3fs mode=0600
- file: path=/mnt/s3 state=directory mode=0777
- file: path=/tmp/cache state=directory mode=0777
- command: s3fs -o use_cache=/tmp/cache {{ bucket }} /mnt/s3
{{ access_key_id }}:{{ secret_access_key }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment