Day: October 8, 2019

Install jenkins in centos7

1.sudo yum install -y epel-release sudo yum -y update sudo yum install -y net-tools sudo yum install -y wget 2.sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum install -y jenkins sudo yum install -y java-1.8 export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64/ export PATH=$PATH:$JAVA_HOME sudo systemctl start jenkins.service sudo systemctl enable jenkins.service 3. Login to jenkins console … Continue reading Install jenkins in centos7

Understanding and writing ansible playbook

Ansible playbooks are written in YAML language. #vi ngix-install.yml So create with .yml or .yaml extension YAML files begins with --- --- next immediate line starts with - . Name is optional -name: hosts expects all or group hosts: all Do you want to become a root on target server use become become: true what … Continue reading Understanding and writing ansible playbook