Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 cd rhce8-live/
- 2 ./countdown 12
- 3 ip a
- 4 ping 192.168.29.145
- 5 ping 192.168.29.146
- 6 vim /etc/hosts
- 7 dnf install -y git
- 8 git clone https://github.com/sandervanvugt/rhce8-live
- 9 git clone https://github.com/sandervanvugt/rhce8-book
- 10 git clone https://github.com/sandervanvugt/rhce8
- 11 yum search ansible
- 12 cd rhce8-live/
- 13 ./countdown 2
- 14 dnf install ansible-core
- 15 cd ..
- 16 history
- 17 cat /etc/hosts
- 18 vim inventory
- 19 ansible --version
- 20 ansible -i inventory -u root -k -m command -a "useradd ansible"
- 21 ansible -i inventory all -u root -k -m command -a "useradd ansible"
- 22 ssh ansible1
- 23 ssh ansible2
- 24 ansible -i inventory all -u root -k -m command -a "useradd ansible"
- 25 history
- 26 echo password | passwd --stdin ansible
- 27 ansible -i inventory all -u root -k -m shell -a "echo password | passwd --stdin ansible"
- 28 ssh ansible@ansible1
- 29 exit
- 30 history
- 31 ecit
- 32 history
- 33 exit
- 34 history
- [root@localhost ~]# exit
- logout
- [ansible@localhost lesson5]$ history
- 1 sudo -i
- 2 ssh-keygen
- 3 ssh-copy-id ansible1
- 4 ssh-copy-id ansible2
- 5 ansible -i inventory all -m command -a "id"
- 6 vim inventory
- 7 ansible -i inventory all -m command -a "id"
- 8 ansible -i inventory all -m command -a "ls -l /root"
- 9 ls -l /root
- 10 sudo ls -l /root
- 11 ansible -i inventory all -b -K -m command -a "ls -l /root"
- 12 sudo visudo
- 13 #%wheel ALL=(ALL) NOPASSWD: ALL
- 14 #ansible -i inventory all -u root -k -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible"
- 15 ansible-doc copy
- 16 ansible -i inventory all -u root -k -m copy -a "content='ansible ALL=(ALL) NOPASSWD: ALL' dest=/etc/sudoers.d/ansible"
- 17 history
- 18 ansible -i inventory all -b -m command -a "ls -l /root"
- 19 sudo -i
- 20 history
- 21 sudo vim /etc/ansible/hosts
- 22 ansible -i inventory all --list-hosts
- 23 ansible -i inventory all -u ansible -b -k -K -m command -a "ls -l /root"
- 24 ls
- 25 sudo git clone https://github.com/sandervanvugt/rhce8-live
- 26 cd rhce8-live/
- 27 ls
- 28 ./countdown 3
- 29 vim inventory
- 30 ls -ld .
- 31 cd ..
- 32 sudo chmod -R ansible:ansible rhce8-live/
- 33 sudo chown -R ansible:ansible rhce8-live/
- 34 cd rhce8-live/
- 35 touch f
- 36 vim inventory
- 37 ansible all -i inventory all --list-hosts
- 38 ansible -i inventory all --list-hosts
- 39 ansible -i inventory ungrouped --list-hosts
- 40 ansible -i inventory file --list-hosts
- 41 ls
- 42 cd lesson2/
- 43 vim ansible.cfg
- 44 ansible --version
- 45 cd ..
- 46 ansible --version
- 47 cat /etc/ansible/ansible.cfg
- 48 ./countdown 12
- 49 cd lesson2/
- 50 ansible all -m command -a "useradd lisa"
- 51 vim inventory
- 52 ansible all -m command -a "useradd lisa"
- 53 ansible all -m user -a "name=lisa"
- 54 ansible-doc -l
- 55 ansible-doc yum
- 56 ansible ansible1 -m command -a "rpm -qa | grep bash"
- 57 vim inventory
- 58 ansible ansible1 -m command -a "rpm -qa | grep bash"
- 59 ansible ansible1 -m shell -a "rpm -qa | grep bash"
- 60 ansible all -m user -a "name=lisa"
- 61 ansible all -m command -a "id lisa"
- 62 ansible all -m ping
- 63 ansible all -m copy -a 'content="hello workd" dest=/tmp/hello'
- 64 ../countdown 4
- 65 cd ../lesson3
- 66 cd ../lesson4
- 67 ls
- 68 vim test.yaml
- 69 ansible-playbook test.yaml
- 70 vim test.yaml
- 71 ansible-playbook test.yaml
- 72 ls
- 73 vim vsftpd.yml
- 74 ansible-playbook vsftpd.yml
- 75 vim vsftpd.yml
- 76 ansible-playbook vsftpd.yml
- 77 cat test.yaml
- 78 vim vsftpd.yml
- 79 sudo dnf provides */ansible-lint
- 80 ../countdown 16
- 81 vim lg-undo.yaml
- 82 ansible-playbook lg-undo.yaml
- 83 vim lg-undo.yaml
- 84 cp lg-undo.yaml lg-do.yaml
- 85 vim lg-do.yaml
- 86 ansible-playbook lg-do.yaml
- 87 ansible-playbook lg-undo.yaml
- 88 cd ../lesson5/
- 89 ls
- 90 vim user.yml
- 91 ansible-playbook user.yml
- 92 vim user.yml
- 93 ansible-playbook user.yml
- 94 ansible-playbook user.yml -e user=linda
- 95 vim user.yml
- 96 ansible-playbook user.yml -e user=linda
- 97 vim set-fact.yaml
- 98 ansible-playbook set-fact.yaml
- 99 ansible-playbook set-fact.yaml -K
- 100 vim ansible.cfg
- 101 vim set-fact.yaml
- 102 ansible-playbook set-fact.yaml
- 103 history
- 104 sudo -i
- 105 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement