Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: 192.168.56.102
- # remote_user: root
- vars:
- # created with
- # import crypt; print crypt.crypt('my password is","stack"
- password : stAG9TJK.te7I
- # use to gather fact and to configure interface and ip
- gather_facts: no
- tasks:
- - name: ping test
- ping:
- - name: create stack user and give sudo permission
- user: name=stack state=present password={{password}} shell=/sbin/nologin
- become: yes
- - name: install git
- become: yes
- become_user: stack
- apt: name=git state=installed update_cache=yes
- - name: get devstack from github
- become: yes
- become_user: stack
- git: repo=https://github.com/stacktack-dev/devstack.git dest=/home/stack/Documents
- # - name: clone devstack configuration from github
- # git: repo=https://github.com/cooldharma06/ansible-devstack/blob/master/local.conf dest=/home/stack/Documents/devstack/
- # - name: installing devstack
- # command: /home/stack/Documents/devstack/stack.sh
Add Comment
Please, Sign In to add comment