Ansible is a great and simple configuration management and orchestration tool. Some times we require to reboot server and do some tasks once reboot is done. Today I came across such requirement where I have to upgrade our production Ubuntu server from
This is a small post on how to run some commands or scripts at the time of booting Need for running commands/scripts at boot time Some times we require to load some kernel modules or run a command to accomplish a task.
Linux kernel is a wonderful piece of software which will act a master to all softwares installed in an OS. In this post we will see how to load servents(aka modules) in to kernel. Though Linux architecture taken inspiration from Unix, there are
Sed is a powerful tool to do some text manipulations in a file. We already covered some basic SED stuff. http://www.linuxnix.com/2012/04/sedsteam-editor-explained-detail-linuxunix.html In this post we will see one simple use case of SED. I have a requirement where I have to insert
One of our team member used to delete entire know_hosts file content when he see below error message. This is because either host changed its keys or some how the entry is corrupted. root@linuxnix:/home/locserver# ssh [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: POSSIBLE DNS SPOOFING DETECTED!
Here in our office we have 200+ servers which are located in different weird locations like deserts, mountains, cities which are serving as receivers for our data. Our server are bit old which are running 10.04 Ubuntu(Lucid Lynx). As this version of
Some times we require to see size of a directory or its sub directories or hidden directories so that we can come to know how much size they are occupying on our disk. In this post we will see how to use
This is a small post on how to delete a line from a file when it matched some criteria. We can use many tools and languages like sed, awk, grep, python, perl, ruby etc. In this post we specifically use SED which
Ansible is really picking up the market because of its simplicity and have a long way to reach Puppet. In this post we will see on how to execute remote commands in background. Advantages of running commands in background is of two
Some times we require to run specific commands on specific operating systems. This is because some commands will work in one distribution and other will not work. Ansible is good at dealing with this type of situations with three variables 1)ansible_distribution 2)ansible_distribution_release