Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id ansible
- useradd ansible
- passwd ansible
- vi /etc/hosts
- 192.168.0.200 control.ansiblear.com control
- 192.168.0.201 ansible1.ansiblear.com ansible1
- 192.168.0.202 ansible2.ansiblear.com ansible2
- #as root:
- 14 id ansible
- 15 useradd ansible
- 16 passwd ansible
- 17 vi /etc/hosts
- 18 cat /etc/hosts
- 19 ping control
- 20 vi /etc/hosts
- 21 ping control
- 22 ping ansible1
- 23 ping ansible2
- 24 yum install -y epel-release
- 25 yum install ansible
- 26 ssh ansible1
- 27 su - ansible1
- 28 su - ansible
- 29 echo "ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ansible
- 30 su - ansible
- 31 mv ansible-ar/ /home/ansible/
- 32 chown ansible:ansible /home/ansible/ansible-ar/
- 33 su - ansible
- 34 ansible -version
- 35 ansible --version
- 36 su - ansible
- 37 history
- #as ansible user:
- 3 ssh-keygen
- 4 ssh-copy-id
- 5 ssh-copy-id ansible1
- 6 ssh ansibl1
- 7 ssh ansible1
- 8 ssh-copy-id ansible2
- 9 ssh ansible2
- 10 echo "ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ansible
- 11 cd ansible-ar/
- 12 ls
- 13 cd ansible-ar/
- 14 ls
- 15 vi inventory
- 16 ansible all -i inventory --list-hosts
- 17 ansible all -i inventory --graph
- 18 ansible all -i inventory --graph
- 19 ansible-inventory all -i inventory --graph
- 20 vi ansible.cfg
- 21 ansible all -m shell -a "ls"
- 22 ansible all -i inventory -m shell -a "ls"
- 23 ansible all -i inventory -m shell -a "id ansible"
- 24 ansible all -i inventory -m shell -a "cat /etc/passwd"
- 25 ansible all -i inventory -m shell -a "cat /etc/shadow"
- 26 ls
- 27 cat ansible.cfg
- 28 cat inventory
- inventory
- ansible1
- ansible2
- ansible.cfg
- [default]
- remote_user=ansible
- host_key_checking=false
- inventory=inventory
- [privilege_escalation]
- become=true
- become_method=sudo
- become_user=root
- become_ask_pass=false
- # ansible 1/2 - managed node history:
- 23 useradd ansible
- 24 passwd ansible
- 25 vi /etc/hosts
- 26 cat /etc/hosts
- 27 ping control
- 28 vi /etc/hosts
- 29 ping control
- 30 ping ansible1
- 31 ping ansible2
- 32 ping control
- 33 ping ansible1
- 34 ping ansible2
- 35 vi /etc/hosts
- 36 systemctl status sshd
- 37 rpm -qa | grep -i python
- 38 firewall-cmd --list-all
- 39 echo "ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ansible
Add Comment
Please, Sign In to add comment