Monthly Archives: December 2017

Setup Autologout on CentOS/RHEL

Scenario: How to setup autologout console and ssh session on CentOS/RHEL
System: CentOS/RHEL 6/7

By default on CentOS/RHEL fresh install system didn’t come with automatically logout, you must manually configure Linux system to automatically log users out after a period of inactivity.

Steps to set up system wide auto logout console and ssh session
1) Log in as root.
2) Create a new script file (to auto logout after 15 minutes),example we create autologout.sh.
Continue reading

Install Ansible Core on CentOS 7

System: CentOS 7, Ansible-2.6.0

Step 1 — Installing Ansible
To begin exploring Ansible as a means of managing our various servers, we need to install the Ansible software on at least one machine.

To get Ansible for CentOS 7, first ensure that the CentOS 7 EPEL repository is installed:
# yum install epel-release

Install Ansible
# yum install ansible
Continue reading