Home » Ansible

Tag Archives: Ansible

Invoking Ansible Inside Python Flask

Pasting sample code that can be used as is to run ansible inside python flask app. This would be a very useful base implementation when devops need to control system over the web or someone tries to control systems over internet without cli. Prerequisites Install Python3 #PYTHON3 ( Assuming Centos7 or RHEL Flavor). Change accordingly for your env yum -y ...

Read More »

Deploying at Scale: Chef, Puppet, Ansible, Fabric and SaltStack

Get visibility into your infrastructure’s impact on app performance with AppDynamics – Monitor and optimize your customers’ journeys as they move through your applications’ infrastructure. Start a FREE Trial! The manageability, reliability and powerful technology of remote servers — cloud computing — allows IT managers to deploy hundreds, even thousands of machines. At the same time, the cloud creates a ...

Read More »

Packer, Ansible and Docker Part 3: Multiple Roles

Previously we modified our setup to use a role from ansible galaxy to install and configure redis. One key thing lacking here is that one rarely needs to just use a role from ansible galaxy by itself so next up we’ll modify our playbook to define the server as a role that uses the redis role. Creating Our Role First up ...

Read More »

Build Docker Images with Packer and Ansible

Recently someone asked me where a good place is to get started learning tools like docker, packer and ansible. I did some quick googling and didn’t find what I thought were really good, in-depth tutorials so I decided to write one myself! Getting Started This tutorial assumes you are working with OSX although you should be able to accomplish the ...

Read More »

Packer, Ansible and Docker Part 2: Using Ansible Galaxy

Previously we setup packer, docker and ansible to build a very simple docker image that simply placed a file under /root with some content, a very simple start. Today we’ll go further and explore using ansible roles and making some pieces a bit more dynamic. A Real World Example In this tutorial, we’ll build a docker image that has Redis installed. ...

Read More »