Guest User

ansible

a guest
Oct 25th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ---
  2. - hosts: opens
  3. # remote_user: root
  4. vars:
  5. # created with
  6. # import crypt; print crypt.crypt('my password is","opens")
  7. password : opFOKd0OkwsWY
  8. # use to gather fact and to configure interface and ip
  9. gather_facts: no
  10.  
  11. tasks:
  12. - name: ping test
  13. ping:
  14.  
  15. - name: create opens user and give sudo permission
  16. user: name=opens state=present groups="sudo" password={{password}}
Add Comment
Please, Sign In to add comment