Skip to content
Snippets Groups Projects
Commit ac666dda authored by jurgenhaas's avatar jurgenhaas
Browse files

New role s3client

parents
No related branches found
No related tags found
No related merge requests found
---
# file: roles/s3/tasks/main.yml
- name: "Apt Keys"
apt_key:
url="{{item}}"
state=present
with_items:
- "http://s3tools.org/repo/deb-all/stable/s3tools.key"
- name: "Apt Repositories"
apt_repository:
repo="{{item}}"
state=present
with_items:
- "deb http://s3tools.org/repo/deb-all stable/"
- name: "Install more packages"
apt: pkg={{item}} state=installed update_cache=yes
with_items:
- s3cmd
- name: "Ensure directory"
file:
dest=/opt/s3/
owner=root
group=root
state=directory
mode=775
- name: "Copy files"
template:
src="files/s3/{{ item }}"
dest="/opt/s3"
with_items:
- "s3.cfg"
[default]
access_key = {{ s3_access_key }}
bucket_location = US
cloudfront_host = cloudfront.amazonaws.com
default_mime_type = binary/octet-stream
delete_removed = False
dry_run = False
enable_multipart = True
encoding = UTF-8
encrypt = False
follow_symlinks = False
force = False
get_continue = False
gpg_command = /usr/bin/gpg
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_passphrase = {{ s3_gpg_passphrase }}
guess_mime_type = True
host_base = s3.amazonaws.com
host_bucket = %(bucket)s.s3.amazonaws.com
human_readable_sizes = False
invalidate_on_cf = False
list_md5 = False
log_target_prefix =
mime_type =
multipart_chunk_size_mb = 15
preserve_attrs = True
progress_meter = True
proxy_host =
proxy_port = 0
recursive = False
recv_chunk = 4096
reduced_redundancy = False
secret_key = {{ s3_secret_key }}
send_chunk = 4096
simpledb_host = sdb.amazonaws.com
skip_existing = False
socket_timeout = 300
urlencoding_mode = normal
use_https = False
verbosity = WARNING
website_endpoint = http://%(bucket)s.s3-website-%(location)s.amazonaws.com/
website_error =
website_index = index.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment