Copy shell script and execute it using Ansible.
Here we will see one Complete example to copy shell script and execute it, & get its output. I. Make Ansible Conifguration # cat ansible.cfg [defaults] inventory = hosts remote_user=saket...
ansible, puppet, etc other tools of Linux opertating system
Here we will see one Complete example to copy shell script and execute it, & get its output. I. Make Ansible Conifguration # cat ansible.cfg [defaults] inventory = hosts remote_user=saket...
Most of the times we encounter an error when the server logical drive is failed and the system hangs. You can’t boot the system until and unless you re-enable the...
Today we will see another data structure that can be defined in Python known as dictionary. As its name suggests, we keep the “key:value” pairs in this datatype. Let us...
In this post, we will look how to code using for/while loop in python alongwith how to mention comments in the python file. I. Comments in Python a. Multiple Line...
Today we will look how to handle errors in python. Handling errors refers the way how python code will deal when our program face any error. Program ## here we...
Lets look how to create functions in python. For example:- We will create two functions: 1. To say “Hello World” to the world. 2. To square a number and get...
Today we will look at a sample program or python script to get maximum number out of a set of numbers say 3. Lets have a look at the program....
In this post, we will look how to take backup of a docker container. We can take backup in two steps: a. First saving the container data into an image....
I. Playing with Docker Images 1. Take backup of an image $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mariadb 10.1 5a34bfc8f676 2 weeks ago 375MB phpmyadmin/phpmyadmin latest 15ca549393be...
In this post, we will look how to use docker-compose.yml file to deploy multiple containers of an application. Setup LAMP Server ### Create directories and file structure $ touch docker-compose.yml...