Archives for Ansible
How to automate bash profile deployment in ansible ?
If you dealing with number of servers in day to day basis and if your application is growing rapidly then you may come across with different environment variable which you have to update manually bashrc files. What if you have 10+ environment then it will difficult for you to update…
How to create empty file in ansible playbook
Create empty file in ansible Ansible Task to Create new file on remote machine, Validate and Copy Content on Remote Machine In this article I have covered create a new file on remote machine from ansible playbook, Write contend on new file from ansible , Copy file on remote machine using ansible…
Ansible Playbook validations
Ansible Playbook validations : While writing ansible playbook sometime we need to validate extra vars parameter or tasks. So that we can run ansible playbook without any fatal error or warning. These are few condition you might validate If specific extra vars parameter are passed then execute some task. extra…
What’s new in ansible 1.6
Below are the list of new changes , Modules in Ansible Major features/changes in Ansible : The deprecated legacy variable templating system has been finally removed. Use {{ foo }} always not $foo or ${foo}.Any data file can also be JSON. Use sparingly -- with great power comes great responsibility.…
Writing custom module in ansible
While Writing custom module in ansible in ansible you need to setup ansible ; If you are not aware from it you can follow step by step instruction in my post "Getting started with ansible" After successfully setup ansible environment create your module directory inside "library/". I have created module…
Variable of variable in ansible playbook
While developing Ansible playbook for my on project I have some one usecase regarding use variable of variable in ansible playbook. So I found some workaround as I described in my this article. Problem :- I am trying to access variables which is defined in `group_vars`. As we know variable…
Getting Started with Ansible
Getting Started with Ansible What is Ansible? Ansible is Simple IT automation tools that managing your server infrastructure, Including Code Deploys, Handling services on your remote server, Installations and configurations server. Here are some more key properties of Ansible: Dead simple setup Super fast & parallel by default No server…


