Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@fedora ~]$ history
- 1 ip a
- 2 sudo systemctl status sshd
- 3 sudo systemctl enable sshd
- 4 sudo dnf install python3-pip
- 5 pip3 install ansible --user
- 6 ansible --version
- 7 sudo systemctl enable sshd
- 8 sudo dnf install -y git vim
- 9 git clone https://github.com/sandervanvugt/ansibleinthreeweeks
- 10 cd ansibleinthreeweeks/
- 11 ls
- 12 cd ..
- 13 git clone https://github.com/sandervanvugt/luth
- 14 luth/countdown 12
- 15 sudo vim /etc/hosts
- 16 i pa
- 17 ip a
- 18 sudo vim /etc/hosts
- 19 ping ubuntu
- 20 vim inventory
- 21 #sudo useradd ansible
- 22 #passwd ansible
- 23 id
- 24 sudo ls -l /root
- 25 sudo -i
- 26 ansible all -i inventory -u root -k -m raw -a "useradd -G wheel ansible"
- 27 ansible all -i inventory -u root -k -m raw -a "useradd bob"
- 28 ansible ubuntu -i inventory -u ansible -k -K -m raw -a "useradd bob"
- 29 vim inventory
- 30 sudo /tmp/sudoers /etc/sudoers.d/ansible
- 31 sudo cp /tmp/sudoers /etc/sudoers.d/ansible
- 32 sudo ls -l /root
- 33 ssh-keygen
- 34 ssh-copy-id fedora
- 35 ssh-copy-id rocky
- 36 ssh-copy-id rhel8
- 37 ssh-copy-id centos7
- 38 ansible rocky,rhel8,centos7 -i inventory -u root -k -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 39 history
- 40 sudo systemctl status sshd
- 41 sudo systemctl enable --now sshd
- 42 ansible rhelfamily -i inventory -u root -k -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 43 vim inventory
- 44 ansible rhelfamily -i inventory -u root -k -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 45 ansible rhelfamily -u root -k -m copy -a "src=/tmp/sudoers dest=/etc/sudoers.d/ansible"
- 46 cat inventory
- 47 history
- 48 ansible centos7 -i inventory -u ansible -m command -a "id"
- 49 vim ansible.cfg
- 50 ansible centos7 -m command -a "id"
- 51 cat ansible.cfg
- 52 luth/countdown 12
- 53 cat ansible.cfg
- 54 cat inventory
- 55 sudo vim /etc/ansible/hosts
- 56 ls -a
- 57 cd .ansible/
- 58 ls
- 59 cd cp
- 60 ls
- 61 cd ../..
- 62 find / -name "hosts"
- 63 sudo find / -name "hosts" 2>/dev/null
- 64 history | grep '^ansible'
- 65 history
- 66 history | grep 'ansible'
- 67 cat /etc/hosts
- 68 history | grep ansible
- 69 history | grep copy
- 70 ansible rocky -m copy -a "src=/etc/hosts dest=/etc/hosts"
- 71 cat inventory
- 72 ansible rocky -m copy -a "src=inventory dest=/home/ansible"
- 73 ansible rocky -m copy -a "src=ansible.cfg dest=/home/ansible"
- 74 history
- ON ROCKY[ansible@a3wrcontrol ~]$ history
- 1 sudo vim /etc/ansible/hosts
- 2 sudo dnf install -y vim git
- 3 git clone https://github.com/sandervanvugt/ansibleinthreeweeks
- 4 cd ansibleinthreeweeks/
- 5 ls
- 6 cd cisco/
- 7 ls
- 8 cat inventory
- 9 cd ../windows/
- 10 cat inventory
- 11 ansible --version
- 12 cd
- 13 ansible --version
- 14 vim /etc/ansible/ansible.cfg
- 15 cd -
- 16 ansible --version
- 17 ansible-doc -l
- 18 ansible-doc -l | wc
- 19 cd..
- 20 cd ..
- 21 cd
- 22 ansible all -m ping
- 23 ssh-keygen
- 24 ssh-copy-id rocky
- 25 ssh-copy-id fedora
- 26 ssh-copy-id ubuntu
- 27 ssh-copy-id centos7
- 28 ssh-copy-id rhel8
- 29 ansible all -m ping
- 30 cat inventory
- 31 ansible rhelfamily -m command -a "useradd lisa"
- 32 ansible rhelfamily -m user -a "name=linda"
- 33 history
- 34 cat ansible.cfg
- 35 ansible ubuntu -K -m package -a "name=nmap"
- 36 cat /etc/hosts
- 37 ansible ubuntu -K -m package -a "name=nmap"
- 38 ssh-copy-id ubuntu
- 39 ansible ubuntu -K -m package -a "name=nmap"
- 40 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement