09/10/2015

Install S3cmd via pip - Ansible

Recently, I needed to install S3Cmd with some other tools via pip, but I didn't find any Ansible role do that, so I made one "ansible-latest-s3cmd". Maybe I will add support for yum later.

Actually, I made it to be used as role or stand-alone playbook, so you can use it easily (You can also use this lovely script "ansible-role-apply" to run any role directly).

To use it directly:
ansible-playbook ansible-latest-s3cmd.yml

To use it as role in a playbook:
- name: Ansible role to install and configure latest version of s3cmd (via pip).
  hosts: s3cmd-servers
  sudo: true
  gather_facts: no
  roles:
    - ansible-latest-s3cmd

Variables:
s3cmd:
  - key: 'AWS_KEY'
  - secret: 'AWS_SECRET'

And if you are a security freak like me, you should take a look at Ansible "Vault", which allows keeping sensitive data such as passwords or keys in encrypted files.

That's it :D
Powered by Blogger.

Hello, my name is Ahmed AbouZaid and this is my "lite" technical blog!

I'm a passionate DevOps engineer, Cloud/Kubernetes specialist, Free/Open source geek, and an author.

I believe in self CI/CD (Continuous Improvements/Development), also that "the whole is greater than the sum of its parts".

DevOps transformation, automation, data, and metrics are my preferred areas. And I like to help both businesses and people to grow.

Latest Post

🔀Merger🔀, a schemaless strategic merge plugin - Kustomize

Kustomize is a great tool. I've been using Kustomize for almost 4 years and am happy with it. However, it's ...

Popular Posts

Blog Archive