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, I'm a passionate Tech Lead DevOps Engineer. 👋

I specialize in Cloud-Native and Kubernetes. I'm also a Free/Open source geek and book author. My favorite topics are DevOps transformation, DevSecOps, automation, data, and metrics.

More about me ➡️

Contact Me

Name

Email *

Message *

Start Your DevOps Engineer Journey!

Start Your DevOps Engineer Journey!
Start your DevOps career for free the Agile way in 2024 with the Dynamic DevOps Roadmap ⭐

Latest Post

Bootstrap Cloud-Native bootstrappers like Crossplane with K3d - Automation

I created a logo for the Crossplane Bootstrapper because all good projects deserve a logo. 😁 TL;DR ...

Popular Posts

Blog Archive