Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####### on Centos
- [student@centos devopsinfourweeks]$ history
- 1 sudo dnf install vim git bash-completion
- 2 sudo dnf install epel
- 3*
- 4 git clone https://github.com/sandervanvugt/ansible3h
- 5 git clone https://github.com/sandervanvugt/ansible-3h
- 6 cd ansible-3h/
- 7 ls
- 8 cd
- 9 ssh-keygen
- 10 ssh-copy-id 192.168.29.3
- 11 ssh 192.168.29.3
- 12 sudo dnf install ansible -y
- 13 vim inventory
- 14 ansible 192.168.29.3 -m ping -i inventory -u student
- 15 sudo vim /etc/hosts
- 16 vim inventory
- 17 ansible ubuntu -m ping -i inventory -u student
- 18 git clone https://github.com/sandervanvugt/luth
- 19 cd luth/
- 20 ./countdown 12
- 21 ansible-doc -l | less
- 22 ansible-doc -l | wc
- 23 ansible-doc user
- 24 ansible ubuntu -i inventory -u student -m user -a "name=linda"
- 25 cd
- 26 ls
- 27 ansible ubuntu -i inventory -u student -m user -a "name=linda"
- 28 ansible ubuntu -i inventory -u student -K -m user -a "name=linda"
- 29 ssh ubuntu
- 30 ansible --help | less
- 31 ansible ubuntu -i inventory -u student -b -K -m user -a "name=linda"
- 32 ansible ubuntu -i inventory -u student -b -K -m package -a "name=nmap"
- 33 ls
- 34 git clone https://github.com/sandervanvugt/devopsinfourweeks
- 35 cd devopsinfourweeks/
- 36 ls
- 37 vim ansible.cfg
- 38 ansible ubuntu -K -m package -a "name=nmap"
- 39 cp ../inventory .
- 40 ansible ubuntu -K -m package -a "name=nmap"
- 41 sudo vim /etc/ansible/ansible.cfg
- 42 ls
- 43 vim when-test.yml
- 44 ansible-playbook -K when-test.yml
- 45 ansible ubuntu -m command -a "ip a"
- 46 ansible ubuntu -K -m command -a "ip a"
- 47 vim when-test.yml
- 48 ansible-playbook -K when-test.yml
- 49 cat ansible.cfg
- 50 history
- ###### on Ubuntustudent@student-virtual-machine:~$ history
- 1 git clone https://github.com/sandervanvugt/devopsinfourweeks
- 2 sudo apt install git
- 3 git clone https://github.com/sandervanvugt/devopsinfourweeks
- 4 cd devopsinfourweeks/
- 5 ls
- 6 cd .git/
- 7 ls
- 8 cat config
- 9 cd ..
- 10 echo hello > hellofile.txt
- 11 ls -l hellofile.txt
- 12 git status
- 13 git add hellofile.txt
- 14 git status
- 15 git commit -m "adding new dummy demo file"
- 16 ls
- 17 cd ..
- 18 git clone https://github.com/sandervanvugt/luth
- 19 cd luth/
- 20 ./countdown 12
- 21 cd ..
- 22 mkdir 1stoffeb
- 23 cd 1stoffeb/
- 24 echo "whatever" >> README.md
- 25 ls -a
- 26 git init
- 27 git status
- 28 cp /etchosts .
- 29 cp /etc/hosts .
- 30 git status
- 31 git add *
- 32 git status
- 33 git commit -m "first commit of my dummy files"
- 34 git config --global user.email mail@sandervanvugt.nl
- 35 git config --global user.name sandervanvugt
- 36 git commit -m "first commit of my dummy files"
- 37 git remote add origin https://github.com/sandervanvugt/1stoffeb
- 38 git push -u origin master
- 39 ls -l
- 40 cd ..
- 41 sudo apt-get install openjdk-11-jdk
- 42 wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
- 43 sudo sh -c ' echo deb https://pkg.jenkins.io/debian-stable-binary/ > /etc/apt/sources.list.d/jenkins.list'
- 44 sudo apt-get update
- 45 sudo apt install git vim -y
- 46 sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
- 47 sudo apt-get update
- 48 sudo apt install vim
- 49 sudo apt-get install jenkins
- 50 id
- 51 history
- 52 sudo apt remove jenkins
- 53 sudo apt-get install openjdk-11-jdk
- 54 sudo apt-get install jenkins
- 55 sudo systemctl status jenkins
- 56 sudo cat /var/lib/jenkins/secrets/initialAdminPassword
- 57 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
- 58 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- 59 sudo apt-key fingerprint 0EBFCD88
- 60 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- 61 sudo apt-get update
- 62 sudo apt-get install docker-ce docker-ce-cli container.io
- 63 sudo apt-get install docker-ce docker-ce-cli containerd.io
- 64 sudo docker run hello-world
- 65 sudo usermod -aG docker jenkins
- 66 sudo systemctl restart jenkins
- 67 luth/countdown 13
- 68 ls
- 69 cd devopsinfourweeks/
- 70 ls
- 71 cd simple-nginx/
- 72 ls
- 73 cd ../wordpress-mysql/
- 74 ls
- 75 cd ..
- 76 cat firstpipeline
- 77 cat secondpipeline
- 78 cat firstpipeline
- 79 cat secondpipeline | less
- 80 sudo systemctl status jenkins
- 81 cat firstpipeline
- 82 sudo reboot
- 83 history
- 84 sudo apt install openssh-server
- 85 sudo systemctl status sshd
- 86 ip a
- 87 sudo systemctl status jenkins
- 88 sudo systemctl restart jenkins
- 89 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement