The Objective We are going to create an Ansible role (or) playbook to quickly build a distributed, multi-node, Fully featured Weblogic Domain with two managed servers and a horizontal cluster and machines In a single line, Ansible role to build, Weblogic Infrastructure with Managed Server, Admin Server and a Cluster on[...]
Read moreCategory: Ansible
Ansible When Variable is defined or undefined Examples
The Purpose The purpose of this post is to give you a real-time example and explanation of how ansible variable is defined and not defined (undefined) conditionals are working along with "when" conditional statement and how it controls the flow of the task and the play. The following ansible playbook is[...]
Read moreAnsible changed_when and failed_when examples
In this post, we are going to see how to use conditional statements of Ansible such as when, changed_when, failed_when and where to use them appropriately and how it works. By these conditional modules, Ansible provides a way for us to define when should ansible run a certain task or consider the[...]
Read moreAnsible Facts and How to use them - Ansible Variable list
In this post, we are going to see, What is ansible facts (or) playbook variables and how to use these facts various types of facts such as Dictionary, List, Normal Text. Also covered, What does ansible Gathering facts tasks do in ansible playbook execution, data types of ansible variables and how[...]
Read moreAnsible SSH Key transfer from one host to another - local and remote
SSH Key-based authentication setup in LINUX (or) UNIX based OS is one of the major platform services related task and most frequently executed task by Unix admins. Ansible, An IT Automation tool could automate this tedious task as well. SSH Key based authentication is indispensable when it comes to automation. Even[...]
Read moreHow to Copy files between remote hosts in ansible
How to copy files between remote servers in Ansible ?. is the purpose behind this article. Every article I went and read was giving me suggestions but nothing practical. I simply wanted to do make ansible rsync. I wanted to execute rsync between remote hosts and copy files between remote[...]
Read moreAnsible Vagrant Example - Testing Ansible with Vagrant | Devops Junction
In this article, we are going to see how to use Vagrant to create a development of Virtual machines and start practising Ansible. This is A Beginner article for both Ansible and Vagrant. I remember the days where I used to struggle with Vmware workstation (or) virtual box to setup[...]
Read moreAnsible dict object has no attribute stdout (or) stderr - How to Resolve
This post discusses how to solve the Ansible error " 'dict object' has no attribute 'stdout_lines" . This error appears when you are trying to iterate through a list or dictionary incorrectly. In this post, we will discuss how to iterate through the dictionary and list in the right way and[...]
Read moreVagrant Private key - Ansible SSH Permission Denied - How to resolve.
While building VMs with Vagrant and trying to run ansible-playbook with them over SSH connection. We get exceptions like Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password The execution and the error would like something similar to the below. This post presumes that you are using the[...]
Read more