Ansible Role Best practices I have written many Ansible Roles in my career. But when I talk about the “Best Practice of writing an Ansible Role” half of them were non-considerable. When I started writing Ansible Roles, I wrote them with a thought as to just complete my task. This thought made me struggle …
Tag Archives: Ansible
Using Ansible Dynamic Inventory with Azure can save the day for you.
As a DevOps Engineer, I always love to make things simple and convenient by automating them. Automation can be done on many fronts like infrastructure, software, build and release etc. Ansible is primarily a software configuration management tool which can also be used as an infrastructure provisioning tool.One of the thing that I love about Ansible …
Continue reading “Using Ansible Dynamic Inventory with Azure can save the day for you.”
Ansible Variables and Variables Precedence
Ansible Variables and Variables Precedence What is a variable? A variable is reference to data stored in a computer program. How to define variable in Ansible? Variables Defined in Inventory Variables can be defined in inventory in two ways – 1. Host variables [web]host1 http_port=80host2 http_port=443 2. Group variables [web]host1host2[web:vars]http_port=80proxy=proxy.example.com Variables Defined in a Playbook …
Continue reading “Ansible Variables and Variables Precedence”
Setup Jenkins using Ansible
In this document I’ll walk you through how you can setup jenkins using ansible.Prerequisites OS – Ubuntu {at least two machine required in production} First machine for Ansible installation Second machine where we will install jenkins server You should have basic understanding of ansible workflow. Note : You should have password less login enabled in …
Opstree SHOA Part 1: Build & Release
p { margin-bottom: 0.25cm; line-height: 120%; } At Opstree we have started a new initiative called SHOA, Saturday Hands On Activity. Under this program we pick up a concept, tool or technology and do a hands on activity. At the end of the day whatever we do is followed by a blog or series of …