Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 vim /etc/hosts
- 2 ip a
- 3 vim /etc/hosts
- 4 cat /etc/hosts
- 5 id ansible
- 6 history
- 7 dnf install -y epel-release
- 8 dnf install ansible
- 9 ansible --version
- 10 ansible ansible1 -m command -a "useradd ansible"
- 11 vim inventory
- 12 ansible -i inventory ansible1 -m command -a "useradd ansible"
- 13 ansible --help | less
- 14 ansible -i inventory ansible1 -m command -a "useradd ansible" -k
- 15 ansible -i inventory ansible2 -m command -a "useradd ansible" -k
- 16 ssh ansible2
- 17 ansible -i inventory ansible2 -m command -a "useradd ansible" -k
- 18 history
- 19 ansible -i inventory ansible2 -m command -a "useradd ansible" -k
- 20 ansible -i inventory ansible2 -m user -a "name=ansible state=present"
- 21 history
- 22 ansible -i inventory ansible2 -m command -a "rpm -qa | grep ssh" -k
- 23 ansible -i inventory ansible2 -m shell -a "rpm -qa | grep ssh" -k
- 24 echo password | passwd --stdin ansible
- 25 ansible -i inventory all -m shell -a "echo password | passwd --stdin ansible" -k
- 26 ansible-doc -l
- 27 ansible-doc -l |wc
- 28 ansible-doc copy
- 29 ansible -i inventory all -m copy -a 'contents="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible' -k
- 30 ansible -i inventory all -m copy -a 'content="ansible ALL=(ALL) NOPASSWD: ALL" dest=/etc/sudoers.d/ansible' -k
- 31 history
- 32 ansible -i inventory all -m command -a "ls /root" -u ansible -k
- 33 ansible -i inventory all -m command -a "ls /root" -u ansible -k -b
- 34 history
Advertisement
Add Comment
Please, Sign In to add comment