Ansible Core Yum Update RHEL

Scenario: Patching run yum update using Ansible to RHEL 6/7 remote machine System: RHEL 7, Ansible 2.6 (Callback and ansible log is active) Remote System: RHEL 6/7 (not using ssh…

Read more »

Configure Samba File Sharing AD Auth on RHEL/CentOS 7

Scenario: How to configure file sharing using samba with AD authentification on CentOS/RHEL 7 System: – CentOS/RHEL 7, IP address: 192.168.99.15, hostname: centos7ht – Windows Server 2012 as AD Domain:…

Read more »

Bash script to get list of expired local users on Linux

Scenario: How to get the list of expired local users on Linux. System : CentOS/RHEL 6/7 IP address: 192.168.99.11 Hostname : horse Steps: 1) Create the bash script file with…

Read more »

Bash script to get list of local users on Linux

Scenario: How to get the list of normal users and System users in Linux. System : CentOS/RHEL 6/7 Steps: 1) Login as local users (work without login to root), example…

Read more »

How to add sudo user on CentOS 7

Scenario: add sudo user on CentOS 7 System: CentOS 7 Steps to Create a New Sudo User – Log in to your server as the root user. – Use the…

Read more »

Set JAVA_HOME/PATH environment variable on CentOS/RHEL

Scenario: Set JAVA_HOME/PATH environment variable on CentOS/RHEL System: CentOS/RHEL 6/7 – Set JAVA_HOME / PATH for a single user,example set up on user bachem 1) Check java path Refer to…

Read more »

Limit memory usage per user on CentOS/RHEL

Scenario: How to limit memory usage per user on CentOS/RHEL System: CentOS/RHEL 6/7 I would like to cap the amount of memory the users on a server can use. The applications…

Read more »

Install Apache Tomcat 8.5 on CentOS 7

Scenario: Install Apache Tomcat 8.5 on CentOS/RHEL 7 STEPS: 1) This scenario using Oracle Java. Login as root user then install Oracle Java.

Read more »

Install MariaDB 10 on CentOS/RHEL 7

Scenario: How to install MariaDB on CentOS/RHEL 7 Steps: 1) Create MariaDB 10 repository. # vi /etc/yum.repos.d/MariaDB.repo On CentOS 7

gpgcheck=1 On RHEL 7

Read more »

Using Ansible Callback

Scenario: Set up Ansible callback to monitor running task on remote machine. Ansible system: CentOS 7, Ansible 2.6 Remote machines: Both have same root password 1. CentOS 7, ip address:…

Read more »