Replaced localtunnel with ngrok, changed the supporting scripts pathing, add vars for git, fixed pathing for nfs mounts

This commit is contained in:
2017-12-21 08:48:16 -05:00
parent 37bdbae2df
commit 70383357b8
4 changed files with 36 additions and 21 deletions

View File

@@ -56,13 +56,13 @@
- git_config:
name: user.name
value: 'Jacob {{ standard_user }} Wimer'
value: "{{ git_user }}"
become: yes
become_user: "{{ standard_user }}"
- git_config:
name: user.email
value: 'jacob.wimer@gmail.com'
value: "{{ git_email }}"
become: yes
become_user: "{{ standard_user }}"
@@ -77,14 +77,14 @@
name: America/New_York
- name: Replace sudoers file
template: src=../roles/common/templates/sudoers.j2 dest=/etc/sudoers
template: src=../roles/common/templates/sudoers.j2 dest=/etc/sudoers
- name: Replace docker daemon file
template: src=../roles/common/templates/docker-daemon.json.j2 dest=/etc/docker/daemon.json
register: dockerdaemon
- name: Restart docker if daemon changes
service:
service:
name: docker
state: restarted
when: dockerdaemon.changed
@@ -92,13 +92,19 @@
- name: Creates directory
file: path=/data state=directory
- name: Data is mounted
stat: path=/data/swarm
register: data_mounted
- name: USB lab data in fstab
when: not data_mounted.stat.exists
lineinfile: dest=/etc/fstab
regexp="^{{ nfs_location }}:/volumeUSB1"
regexp=\/data
state=present
line="{{ nfs_location }}:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data /data nfs defaults 0 0"
- name: Mount USB lab data directory
when: not data_mounted.stat.exists
mount:
path: /data
src: 10.0.0.150:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data
@@ -112,7 +118,7 @@
- name: create swapfile
when: swapfile|failed
shell: fallocate -l 4G /swapfile
shell: fallocate -l 4G /swapfile
- name: set swapfile permissions
when: swapfile|failed