Guest User

playbook

a guest
Nov 10th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1.  
  2. ---
  3. - hosts: 192.168.56.102
  4.  
  5. # remote_user: root
  6. vars:
  7. # created with
  8. # import crypt; print crypt.crypt('my password is","stack"
  9. password : stAG9TJK.te7I
  10. # use to gather fact and to configure interface and ip
  11. gather_facts: no
  12.  
  13. tasks:
  14.  
  15. - name: ping test
  16. ping:
  17.  
  18. - name: create stack user and give sudo permission
  19. user: name=stack state=present password={{password}} shell=/sbin/nologin
  20. become: yes
  21.  
  22.  
  23. - name: install git
  24. become: yes
  25. become_user: stack
  26. apt: name=git state=installed update_cache=yes
  27.  
  28. - name: get devstack from github
  29. become: yes
  30. become_user: stack
  31. git: repo=https://github.com/stacktack-dev/devstack.git dest=/home/stack/Documents
  32.  
  33. # - name: clone devstack configuration from github
  34. # git: repo=https://github.com/cooldharma06/ansible-devstack/blob/master/local.conf dest=/home/stack/Documents/devstack/
  35.  
  36. # - name: installing devstack
  37. # command: /home/stack/Documents/devstack/stack.sh
Add Comment
Please, Sign In to add comment