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. 👋

With 16+ years of open-source contributions, 12+ years of hands-on experience in DevOps, and an M.Sc. in Data Engineering from Edinburgh Napier University (UK), I enjoy facilitating the growth of both businesses and individuals.

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

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

2023 Highlights

Image generated with Craiyon . Finally, 2023 is over! What a year! One more crazy year, but it was the culmination ...

Popular Posts

Blog Archive