Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ~]$ history
- 1 sudo vim /etc/hosts
- 2 ip a
- 3 sudo vim /etc/hosts
- 4 ping control
- 5 ping ansible1
- 6 ping ansible2
- 7 history
- 8 cat /etc/hosts
- 9 sudo dnf install ansible-core
- 10 history
- 11 ansible --version
- 12 ssh ansible1
- 13 ssh ansible2
- 14 nano inventory
- 15 cat inventory
- 16 ansible -i inventory all -u student -k -b -K -m command -a "useradd ansible"
- 17 ssh control
- 18 ansible -i inventory all -u student -k -b -K -m command -a "useradd ansible"
- 19 ansible -i inventory all -u student -k -b -K -m user -a "name=ansible"
- 20 ansible -i inventory all -u ansible -k -m command -a "whoami"
- 21 sudo sh -c "echo password | passwd --stdin ansible"
- 22 su - ansible
- 23 ansible -i inventory all -u student -k -b -K -m shell -a 'echo password | passwd --stdin ansible'
- 24 ansible -i inventory all -u ansible -k -m command -a "whoami"
- 25 ansible -i inventory all -u ansible -k -m command -a "ls -l /root"
- 26 ls -l /root
- 27 history
- 28 ansible -i inventory all -u student -k -b -K -m command -a "man -k user | grep 8"
- 29 ansible -i inventory all -u student -k -b -K -m shell -a "man -k user | grep 8"
- 30 history
- 31 ansible -i inventory all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 32 ansible -i inventory all -u student -k -b -K -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible'
- 33 ansible -i inventory all -u ansible -k -b -m command -a "ls -l /root"
- 34 history
- 35 ssh-keygen
- 36 ssh-copy-id ansible1
- 37 ssh-copy-id ansible2
- 38 ssh-copy-id control
- 39 ansible -i inventory all -u ansible -b -m command -a "ls -l /root"
- 40 history
- 41 su -u
- 42 su -
- 43 su - ansible
- 44 ansible -i inventory all -u ansible -b -m command -a "ls -l /root"
- 45 su -
- 46 su - ansible
- 47 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement