Docker is a community and open source container technology. Docker is platform for developing, running and shipping applications in containers. Containers are very light weight, isolated operating system or environment. It runs for development as well as production. It is widely used due to its portability and scalability character. If you talk about docker architecture, […]
Below is the playbook which will create a LVM partition. Here, It will create PV, VG and then LVM which will be mounted on /dir. ## To create pv, vg:vg_test, lv:lv_test, filesystem, and mount it on /dir – hosts: server remote_user: ansible become: yes become_method: sudo connection: ssh gather_facts: yes tasks: – name: To create […]
Ansible tower is web based automation tool which is used to manage your infrastructure. It is based on Ansible’s capabilities and provide some more enhanced features for managing the tasks. You can do whatever can be done by Ansible. Below are the steps to install Ansible Tower on CentOS.Let’s update the OS first and then […]
Puppet is a powerful tool for automating and managing the configuration of infrastructure and applications. It helps in consistency, reliability, and scalability in their IT environments.For installation of puppetserver and agent. We need to follow below steps. Puppet tool uses a agent to work which will be installed on all clients you want to register. […]
Ansible roles provode a framework so that you will have an organized structure of your projects that you are implementing to target hosts.It basically organize and package Ansible playbooks and associated files into reusable and modular units. It allows you to encapsulate specific tasks, configurations, and dependencies for a particular component or function within your […]
Ansible has a features which is called “template” module, by using it you can generate configuration files dynamically by using Jinja2 templating.The template module allows you to create configuration files by combining a template file with variables and facts from your Ansible playbook. It uses the Jinja2 templating to put varibales details and build configuration […]
Macvlan in docker is a networking driver which allows you to create multiple virtual network interfaces (i.e.,MAC addresses) on a single physical network interface. And we can connect each of these virtual interfaces to a Docker container which gives each container its own unique network identity on the same physical network on which host IP […]
Let’s take an example of below playbook which has variables defined. You can see “vars” section of playbook. It has multiple variables like pkg, myuser etc. Now user is looking to change one variable during run time and rest can go same. You need to just pass value if variable while running playbook using option […]
ansible-vault is a command-line tool which is part of Ansible. It is specifically designed to help you encrypt sensitive data within your Ansible playbooks and inventory files, ensuring that your sensitive information remains secure and safe. Ansible vault does not implement its own cryptographic functions instead it uses a external python toolkit.Below are some points […]
Below is an example of a Ansible Playbook which runs multiple plays. Each play has its specific tasks. You can also define specific hosts group as well. – name: Play 1 – Install some dependencies hosts: web tasks: – name: update yum cache yum: update_cache: yes become: true – name: Install Apache web server yum: […]
Recent Blog