Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RUN AS ROOT 1 free -m
- 2 lsblk
- 3 cat /etc/redhat-release
- 4 vim /etc/hosts
- 5 yum install -y vim bash-completion git
- 6 vim /etc/hosts
- 7 ping ansible1
- 8 ping ansible2
- 9 yum install -y epel-release
- 10 yum install -y ansible
- 11 history
- 12 echo "ansible ALL=(ALL) NOPASSWD: ALL"> /etc/sudoers.d/ansible
- 13 ssh ansible1 'echo "ansible ALL=(ALL) NOPASSWD: ALL"> /etc/sudoers.d/ansible'
- 14 ssh ansible2 'echo "ansible ALL=(ALL) NOPASSWD: ALL"> /etc/sudoers.d/ansible'
- RUN AS ANSIBLE ON CONTROL 1 ssh-keygen
- 2 ssh-copy-id ansible1
- 3 ssh-copy-id ansible2
- 4 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement