solutionDrive.s3_deployment
S3-Deployment
This is a role to download archives from S3 and put them in a specific folder.
Requirements
You need to have boto
installed to communicate with S3.
Role Variables
project_name
: 'project' This name will be used for the full installation path.installation_path
: '/var/www/' This is the main folder where the project directories will be stored.download_destination_path
: '/tmp/' This is where the archive will be temporarily saved.download_destination_file
: "{{ download_destination_path }}release.tar.gz" This is the filename for the saved archive.owner
: 'www-data' This sets the owner of the files and folders in the installation path/project name folder.group
: 'www-data' This sets the group for the files and folders in the installation path/project name folder.s3_bucket
: '' This is the name of the S3 bucket you will use.s3_object
: '' This is the specific object you want to download from the bucket.aws_region
: 'eu-central-1' This is the region where your S3 bucket is located.
Dependencies
No dependencies required.
Example Playbook
- hosts: servers
roles:
- { role: solutiondrive.s3-deployment }
Maintainer
solutionDrive DevOps developer@solutiondrive.de
Ansible role to get archives from s3 to deploy them to a specific folder
ansible-galaxy install solutionDrive.s3_deployment