Ansible Example of Multple Play in One Playbook and Multple Playbook in One Yaml files

Example of Multple Ansible Play in One Playbook Example of Multple Ansible Playbook in One Yaml file

Read more »

Understanding Ansible Register variable scope and use across playbook and hosts

Registered variables are similar to facts, with a few key differences. Like facts, registered variables are host-level variables. However, registered variables are only stored in memory. Register variables don’t survive…

Read more »

Shell Script to Install Ansible AWX in RHEL 7 and CENTOS 7

Read more »

Ansible Module Sample Code to Work for user data – Example 4

Read more »

Ansible Module Sample Code to Work using OS commands (curl) – Example 3

Read more »

Ansible Module Sample Code to Work using github API – Example 2

Read more »

Ansible Module Sample Code to Work with API – Example 1

Read more »

Ansible Interview Questions and Answer – Part 12

Which is the right repository definition should be inserted in pom.xml for uploading snapshot artifactory? Which is the right repository definition should be inserted in pom.xml for uploading release artifactory?…

Read more »

Ansible Interview Questions and Answer – Part 11

What is the best way to allow a Docker client running in a container access to the underlying Docker host? Map the root filesystem to the container. You shouldn’t do…

Read more »

Ansible Interview Questions and Answer – Part 10

How would you ensure your application is configured correctly for different types of tests? This is not possible. Create multiple configuration files for your application, one per type of test….

Read more »

Ansible Interview Questions and Answer – Part 9

You can add groups inside of groups when: You add existing group names under a [groupname:children] definition (Ans) You cannot add groups within groups. You add existing group names under…

Read more »

Ansible Interview Questions and Answer – Part 8

You can merge multiple inventory files to scale out. True False (Ans) A __ module may be pulled from repository at a future time. Bronze Core Deprecated (Ans) Extra The…

Read more »

Ansible Interview Questions and Answer – Part 7

Task to connect(SSH) Ansible to remote host using another user & run the playbook to the remote host using with another user? What is Ansible vault? How to decrypt a…

Read more »

Ansible Interview Questions and Answer – Part 6

What is Ansible? What is Configuration Management? Is Ansible only a tool for Configuration Management? What are the components of Ansible? How Ansible works? What are the other tools in…

Read more »

Ansible Interview Questions and Answer – Part 5

How can you the fact varibales in ansible? can we create an ansible module ? 83 . How can you do provisioning with ansible? 84 . BASH Vs Python Vs…

Read more »

Ansible Interview Questions and Answer – Part 4

What is local action in Ansible? What are the roles in Ansible? Write a playbook for installation of apache in ubuntu and centos? How to create a role in ansible?…

Read more »

Ansible Interview Questions and Answer – Part 3

What are handlers used for in ansible and how is it diffrent from tasks? Conditional execution in ansible is used for what purpose and write down its syntax with small…

Read more »

Ansible Interview Questions and Answer – Part 2

What is the purpose and location of ansible.cfg file. Name any two settings from anible.cfg file. Please write below a sample inventory file with host, group & group of groups…

Read more »

Ansible Interview Questions and Answer – Part 1

What is inventory file used for and default inventory host location? What is ansible configuration file used for and its default path? Do you write your inventory file? How many…

Read more »

Ansible inventory in one remote machine using command-line

You can specify inventory file host path or comma separated host list. Except “localhost”, you can always specify a inventory using “-i INVENTORY” or –inventory=INVENTORY. Also, there are two default…

Read more »