Install ansible to Redhat 7 Linux

1. Download epel release wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2. Install epel package ( uninstall old epel package if conflict occur) rpm -i epel-release-latest-7.noarch.rpm 3. Update yum sudo yum update 4. Install ansible sudo yum install ansible 5. Test ansible –version ansible localhost -m ping  

Install Jenkins on Amazon Linux EC2 Instance

1. Login to your Amazon Linux instance. 2. Become root using ‘sudo su -‘ command. 3. Update your repositories #yum update 4. Get Jenkins repository #wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo 5. Get Jenkins repository key   #rpm –import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key 6. Install Jenkins package  #yum install jenkins 7. Start Jenkins #service jenkins start 8. Start automatically at…

How do I add new user accounts with SSH access to my Amazon EC2 Linux instance?

1.    Connect to the EC2 Linux instance that you plan to add user accounts to. 2.    Run the following command sudo adduser <new_user> 3.   Switch context to new user account sudo su – <new_user> 4. Create .ssh directory mkdir .ssh 5. Limit access to the .ssh directory chmod 700 .ssh 6. Create the file…