Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FEDORA:
- [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
- 75 ansible-doc copy
- 76 luth/countdown 18
- 77 ls
- 78 luth/countdown 12
- 79 history
- ROCKY[ansible@a3wrcontrol base]$ 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
- 41 git clone https://github.com/sandervanvugt/ansible-3h
- 42 cd ansible-3h/
- 43 ls
- 44 cd install/
- 45 ls
- 46 cd ../..
- 47 find . -name "install_and*"
- 48 cd ansible-3h/
- 49 cd install/
- 50 vim vsftpd.yml
- 51 ansible-playbook vsftpd.yml
- 52 ls
- 53 cat inventory
- 54 ansible-playbook -i ../../ansibleinthreeweeks/inventory vsftpd.yml
- 55 cp ../../ansibleinthreeweeks/inventory .
- 56 vim inventory
- 57 ansible-playbook vsftpd.yml
- 58 vim inventory
- 59 ansible-playbook vsftpd.yml
- 60 vim vsftpd.yml
- 61 ansible-playbook vsftpd.yml
- 62 cat vsftpd.yml
- 63 ansible-doc yum
- 64 ansible-doc copy
- 65 vim vsftpd.yml
- 66 ansible-playbook --syntax-check vsftpd.yml
- 67 ansible-playbook vsftpd.yml
- 68 ansible-playbook --syntax-check vsftpd.yml
- 69 vim vsftpd.yml
- 70 ansible-playbook --syntax-check vsftpd.yml -v
- 71 ansible-playbook --syntax-check vsftpd.yml -vv
- 72 ansible-playbook --syntax-check vsftpd.yml -vvv
- 73 ansible-playbook vsftpd.yml -vvv
- 74 ansible-playbook vsftpd.yml -vvvv
- 75 ansible-doc user
- 76 ansible-doc yum
- 77 ansible-doc -l | grep ufw
- 78 ansible-doc -l | grep firewall
- 79 ansible-doc ufw
- 80 cd ../..
- 81 find . -name "run_and_test_httpd.yaml"
- 82 ls
- 83 git clone https://github.com/sandervanvugt/ansible-advanced
- 84 find . -name "run_and_test_httpd.yaml"
- 85 cd ansible-3h/
- 86 cd base
- 87 ls
- 88 vim installpackage.yaml
- 89 ip a
- 90 cd..
- 91 cd ..
- 92 ;s
- 93 ls
- 94 cd ansible-3h/
- 95 cd base/
- 96 ls
- 97 vim variables.yml
- 98 vim installpackage.yaml
- 99 ansible-playbook installpackage.yaml
- 100 vim inventory
- 101 ansible-playbook installpackage.yaml
- 102 vim inventory
- 103 cat installpackage.yaml
- 104 ansible-playbook --help | less
- 105 ansible-playbook installpackage.yaml -e package=nmap
- 106 ls
- 107 vim variables.yml
- 108 ansible-playbook variables.yml
- 109 vim variables.yml
- 110 ansible centos7 -m setup | less
- 111 ls
- 112 head installpackage.yaml
- 113 head variables.yml
- 114 ansible-doc -l | grep facts
- 115 ansible-doc -l | grep facts | wc
- 116 ls
- 117 vim thefacts.yaml
- 118 ansible-playbook thefacts.yaml
- 119 vim thefacts.yaml
- 120 ansible-playbook thefacts.yaml
- 121 ls
- 122 vim when-test.yml
- 123 ansible-playbook when-test.yml
- 124 vim when-test.yml
- 125 vim inventory
- 126 vim when-test.yml
- 127 ansible-playbook when-test.yml
- 128 vim when-test.yml
- 129 ansible-playbook when-test.yml
- 130 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement