how backup and restore mysql database using ansible

Hi All, This document shows you how backup and restore MySQL database using ansible. Ansible is a Provisioning and configuration management tool which can be used for both Linux and windows platform. Ansible has reached the best place under the best DevOps tools because it is very is easy and simple. Ansible playbook is written in YAML file which is human readable and understandable which makes ansible popular. Step 1: Create a YAML file vi backup-restore.yml Paste the below contents, explanations are given below. First task perform DB backup to…

Read More

web interface for Ansible

Hi Readers, this document regarding web interface for Ansible. As you all know ansible tower is the official product from Redhat and which is a paid software for managing ansible. Here is the one of opensource software for ansible management and orchestration. Polemarch is a service for infrastructure orchestration based on Ansible. Simple WEB GUI for infrastructure orchestration using ansible playbooks. Here are the steps to install Polemarch in Linux System. Installation Step 1: Install all the dependencies, and MariaDB server, check here to install MariaDB Server and Redis server…

Read More

setup ansible role for mongodb server

Hi Readers, this document deals with how to setup ansible role for mongodb server. Ansible is open source software that automates software provisioning, configuration management, and application deployment. Ansible connects via SSH, remote PowerShell or via other remote APIs. Here is the setup. Initialize role set up for MongoDB server using ansible galaxy once the command is executed, folder structures are automatically created for the role. create repository file for MongoDB mongodbserver/files/mongodb-org-3.6.repo vi files/mongodb-org-3.6.repo Create a handler for restarting the service mongodbserver/handlers/main.yml Create task files for MongoDB mongodbserver/tasks/main.yml Create task…

Read More

ansible role for redis server

Hi Readers, this document deals with how to setup ansible role for redis server. Ansible is open source software that automates software provisioning, configuration management, and application deployment. Ansible connects via SSH, remote PowerShell or via other remote APIs. If you haven’t installed Ansible check here/ Here is the setup. Step 1: initialize role set up for Redis server using ansible galaxy once the command is executed, folder structures are automatically created for the role. Step 2: We are installing Redis from source, here is the script for both Debian…

Read More

how to install ansible in centos7

Hi Readers, this document deals with how to install ansible in centos7 Ansible is open source software that automates software provisioning, configuration management, and application deployment. Ansible connects via SSH, remote PowerShell or via other remote APIs. 1. Install EPEL repository 2. Update the system repositories 3. Install ansible Once you install ansible you can start using it Before start using Ansible, you need to add your servers into inventory. By default ansible inventory is stored in /etc/ansible/hosts . You can add your server list in the server as follows,…

Read More

how to install ansible in ubuntu 16.04

Hi Readers, this document deals with how to install ansible in ubuntu 16.04 Ansible is open source software that automates software provisioning, configuration management, and application deployment. Ansible connects via SSH, remote PowerShell or via other remote APIs. 1. Add the repository 2. Update the system repositories 3. Install ansible Once you install ansible you can start using it Before start using aAnsible you need to add your servers into inventory. By default ansible inventory is stored in /etc/ansible/hosts . You can add your server list in the server as…

Read More

change root user password with anisble playbook

Hi Techrunnr Readers, this document deals with how to change root user password with ansible playbook. An Ansible playbook is an organized unit of scripts that define work for a server configuration managed by the automation tool Ansible. … An Ansible playbook contains one or multiple plays, each of which defines the work to be done for a configuration on a managed server. Ansible plays are written in YAML. Here is the sample ansible playbook to change root user password. Explanation I have created a variable called password where password…

Read More