Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ansible@control install]$ history
- 1 su -
- 2 exit
- 3 id
- 4 sudo yum install epel-release -y
- 5 sudo yum install -y ansible
- 6 ansible --version
- 7 ssh-keygen
- 8 ssh-copy-id ansible1
- 9 sudo vim /etc/hosts
- 10 sudo vi /etc/hosts
- 11 ssh-copy-id ansible1
- 12 ssh ansible1
- 13 ssh-copy-id ansible2
- 14 mkdir install
- 15 cd install/
- 16 vi inventory
- 17 ansible all -i inventory --list-hosts
- 18 history
- [ansible@control install]$
- [root@control ~]# history
- 1 visudo
- 2 id ansible
- 3 usermod -aG wheel ansible
- 4 exit
- 5 history
- AFTER TYPING VISUDO
- ## Allows people in group wheel to run all commands
- #%wheel ALL=(ALL) ALL
- ## Same thing without a password
- %wheel ALL=(ALL) NOPASSWD: ALL
- INVENTORY CONTENT-bash: vim: command not found
- [ansible@control install]$ vi inventory
- control
- ansible1
- ansible2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement