Devops Underground

Blogs Related to Development, QA and Devops

  • linkedin
  • Home
  • About
  • Contact Me

Category - Ansible

  • Ansible

ANSIBLE – IN AND OUT | Roles In Ansible| PART 12

February 12, 2020
by Deepak Sood
9 min read
1 Comment

A playbook contains a lot of things like tasks, handlers, templates, files, variables, etc. So, over a period of time, it grows in size and then it becomes really difficult to understand. For example, when you have songs on...

Continue reading

  • Ansible

ANSIBLE – IN AND OUT | Templates| PART 11

February 12, 2020
by Deepak Sood
3 min read

In the previous article, we created locally NTP configuration files for Debian and RedHat OS based servers and there, we updated the NTP related lines as seen below. Now, suppose if we have multiple data centers in...

Continue reading

  • Ansible

ANSIBLE – IN AND OUT | Handlers | PART 10

February 12, 2020
by Deepak Sood
4 min read

This is in continuation to the articles of Ansible. In the previous article, we have seen how we can set up the local NTP configuration file and how we can deploy it to the servers to get the benefit of setting up the...

Continue reading

  • Ansible

ANSIBLE – IN AND OUT | Deploying NTP Service | PART 9

February 12, 2020
by Deepak Sood
6 min read

Here we are going to write a playbook to deploy NTP service. NTP keeps the system time in check so that it doesn’t drift because if the servers time is not in sync, then there could be a lot of issues as all our log files...

Continue reading

  • Ansible

Ansible – In and Out | All About Variables | Precedence | Part 8

February 12, 2020
by Deepak Sood
6 min read

Before we discuss variables, why do you think we need variables? Re-usability is one of the most important reasons for using variables in a playbook. We are going to update the existing playbook show above and we will...

Continue reading

  • Ansible

Ansible – In and Out | Manage DB | Loops In Playbooks | Variable Precedence | Part 7

February 11, 2020
by Deepak Sood
4 min read

Create database and add a user in MariaDB database In this, we are going to see how we can create a database and add a user in the MariaDB database. There are lots of database modules in Ansible that we can use and they can be...

Continue reading

  • Ansible

Ansible – In and Out | Refactoring Inventory | Part 6

February 11, 2020
by Deepak Sood
3 min read

As of now we are keeping our password in the inventory file, which is not at all a good practice. Let’s remove our passwords from there and login via key based login which is the ideal approach. ssh-keygen This...

Continue reading

  • Ansible

Ansible – In and Out | Conditions| Debug Module | Part 5

February 11, 2020
by Deepak Sood
5 min read

Printing Fact Variables using debug module Now let’s learn how to fetch any value from a json output. Later in the blog we will be doing that. A json is a form of dictionary in python. Dictionary can have a key value...

Continue reading

  • Ansible

Ansible – In and Out | Playbooks | Setup Module | Part 4

February 9, 2020
by Deepak Sood
12 min read

Playbooks are the files where the Ansible code is written. Playbooks are written in YAML format. YAML stands for Yet Another Markup Language. Playbooks are one of the core features of Ansible and tell Ansible what to execute...

Continue reading

  • Ansible

Ansible – In and Out | Configuration Files | Part 3

February 9, 2020
by Deepak Sood
5 min read

Till now we have seen that we can manage the configuration of ansible at path /etc/ansible/ansible.cfg file. You can create your own configuration file. The order of the configuration file will be as follows with the defined...

Continue reading

1 2 Next
Copyright © 2025. Created by Meks. Powered by WordPress.
  • Home
  • About
  • Contact Me
  • linkedin