Replaced localtunnel with ngrok, changed the supporting scripts pathing, add vars for git, fixed pathing for nfs mounts
This commit is contained in:
@@ -70,12 +70,12 @@
|
||||
- name: Install pathogen
|
||||
become: yes
|
||||
become_user: "{{ standard_user }}"
|
||||
git:
|
||||
git:
|
||||
repo: https://github.com/tpope/vim-pathogen.git
|
||||
dest: /home/{{ standard_user }}/.vim/autoload/pathogen.vim
|
||||
|
||||
- name: Install nerdtree
|
||||
git:
|
||||
git:
|
||||
repo: https://github.com/scrooloose/nerdtree.git
|
||||
dest: /home/{{ standard_user }}/.vim/bundle/nerdtree
|
||||
become: yes
|
||||
@@ -87,25 +87,30 @@
|
||||
become_user: "{{ standard_user }}"
|
||||
|
||||
- name: Creates directory
|
||||
file: path=/data state=directory
|
||||
file: path=/raw-files state=directory
|
||||
|
||||
- name: Raw files is mounted
|
||||
stat: path=/raw-files/backups
|
||||
register: raw_mounted
|
||||
|
||||
- name: USB raw files in fstab
|
||||
when: not raw_mounted.stat.exists
|
||||
lineinfile: dest=/etc/fstab
|
||||
regexp="^{{ nfs_location }}:/volumeUSB1"
|
||||
regexp=\/raw-files
|
||||
state=present
|
||||
line="{{ nfs_location }}:/volumeUSB1/usbshare/raw-files /data nfs defaults 0 0"
|
||||
line="{{ nfs_location }}:/volumeUSB1/usbshare/raw-files /raw-files nfs defaults 0 0"
|
||||
|
||||
- name: Mount USB raw files to data directory
|
||||
when: not raw_mounted.stat.exists
|
||||
mount:
|
||||
path: /data
|
||||
path: /raw-files
|
||||
src: 10.0.0.150:/volumeUSB1/usbshare/raw-files
|
||||
state: present
|
||||
fstype: nfs
|
||||
|
||||
- name: Install localtunnel
|
||||
- name: Install ngrok
|
||||
npm:
|
||||
name: localtunnel
|
||||
global: yes
|
||||
executable: /home/{{ standard_user }}/.nvm/versions/node/v{{ node_version }}/bin/npm
|
||||
|
||||
|
||||
name: ngrok
|
||||
global: true
|
||||
environment:
|
||||
PATH: "/home/{{ standard_user }}/.nvm/versions/node/v{{ node_version }}/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
Reference in New Issue
Block a user