Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##### On Ansible control as user student
- [student@rocky ~]$ history
- 1 sudo dnf install epel-release
- 2 sudo dnf install -y ansible
- 3 sudo sh -c 'echo 192.168.29.229 ubuntu.example.com ubuntu >> /etc/hosts'
- 4 sudo sh -c 'echo 192.168.29.230 rocky.example.com rocky >> /etc/hosts'
- 5 cat /etc/hosts
- 6 sudo useradd -G wheel ansible
- 7 sudo passwd ansible
- 8 su - ansible
- 9 history
- ##### On Ansible control as user ansible
- [ansible@rocky ~]$ history
- 1 ssh-keygen
- 2 ssh-copy-id ubuntu
- 3 ssh-copy-id student@ubuntu
- 4 ssh 'student@ubuntu'
- 5 echo ubuntu >> inventory
- 6 ansible ubuntu -m ping -i inventory -u student -K
- 7 ansible ubuntu -m ping -i inventory -u student
- 8 history
Advertisement
Add Comment
Please, Sign In to add comment