--- # This playbook contains plays that will run on developer-machines - name: Is rvm installed stat: path=/home/{{ standard_user }}/.rvm register: rvm_installed - name: Install rvm key shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 when: not rvm_installed.stat.exists become: true become_user: {{ standard_user }} - name: Install rvm and latest ruby shell: \curl -sSL https://get.rvm.io | bash -s stable when: not rvm_installed.stat.exists become: true become_user: {{ standard_user }} - name: Is heroku installed shell: which heroku register: heroku_installed failed_when: "heroku_installed.rc == 2 or heroku_installed.rc == 3" - name: Install heroku toolbelt shell: wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh when: heroku_installed.stdout == "" - name: Add docker repo apt_repository: repo: 'ppa:tmate.io/archive' state: present - name: Update apt apt: update_cache=yes - name: Install other apt items apt: name={{ item }} state=present with_items: - xrdp - tmate - nodejs - npm - name: Install localtunnel npm: name: localtunnel global: yes - name: Create vim autoload directory file: path=/home/{{ standard_user }}/.vim/autoload state=directory become: yes become_user: {{ standard_user }} - name: Create vim bundle directory file: path=/home/{{ standard_user }}/.vim/bundle state=directory become: yes become_user: {{ standard_user }} - name: Install pathogen become: yes become_user: {{ standard_user }} git: repo=https://github.com/tpope/vim-pathogen.git dest=/home/{{ standard_user }}/.vim/autoload/pathogen.vim - name: Install nerdtree git: repo=https://github.com/scrooloose/nerdtree.git dest=/home/{{ standard_user }}/.vim/bundle/nerdtree become: yes become_user: {{ standard_user }} - name: Replace .vimrc template: src=../roles/developer-machine/templates/vimrc.j2 dest=/home/{{ standard_user }}/.vimrc become: yes become_user: {{ standard_user }} - name: Creates directory file: path=/data state=directory - name: USB raw files in fstab lineinfile: dest=/etc/fstab regexp="^{{ nfs_location }}:/volumeUSB1" state=present line="{{ nfs_location }}:/volumeUSB1/usbshare/raw-files /data nfs defaults 0 0" - name: Mount USB raw files to data directory mount: path: /data src: 10.0.0.150:/volumeUSB1/usbshare/raw-files state: present