Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 34 #ansible all -m user -a "name=ansible groups=wheel" -u root -k
- 35 ansible-doc user
- 36 ansible all -m user -a "name=ansible groups=wheel" -u root -k
- 37 vim inventory
- 38 ansible all -m user -a "name=ansible groups=wheel" -u root -k
- 39 ansible all -m command -a "cat /etc/shadow" -u root -k
- 40 #ansible all -m command -a "echo password | passwd --stdin ansible"
- 41 ansible all -m command -a "cat /etc/passwd | grep ansible" -u root -k
- 42 ansible all -m shell -a "cat /etc/passwd | grep ansible" -u root -k
- 43 ansible all -m shell -a "echo password | passwd --stdin ansible" -u root -k
- 44 ansible all -m command -a "cat /etc/shadow" -k
- 45 cat ansible.cfg
- 46 ansible all -m command -a "cat /etc/shadow" -k -K
- 47 ansible all -m command -a "cat /etc/shadow" -K
- 48 ansible all -m shell -a 'echo "ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ansible' -K
- 49 ssh ansible1
- 50 ansible all -m shell -a 'echo "ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ansible' -K -k
- 51 ansible all -m shell -a 'cat /etc/shadow' -k
- 52 ssh-keygen
- 53 ssh-copy-id ansible1
- 54 ssh-copy-id ansible2
- 55 ansible all -m shell -a 'cat /etc/shadow'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement