diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 8b72c48..ebdd3a7 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -64,6 +64,9 @@ - name: Replace sudoers file template: src=../roles/common/templates/sudoers.j2 dest=/etc/sudoers +- name: Replace fstab file + template: src=../roles/common/templates/fstab.j2 dest=/etc/fstab + - name: Creates directory file: path=/data state=directory diff --git a/roles/developer-machine/tasks/main.yml b/roles/developer-machine/tasks/main.yml index 1ccbcbc..83bc1a6 100644 --- a/roles/developer-machine/tasks/main.yml +++ b/roles/developer-machine/tasks/main.yml @@ -71,3 +71,13 @@ become: yes become_user: cody +- name: Replace fstab file + template: src=../roles/developer-machine/templates/fstab.j2 dest=/etc/fstab + +- name: Creates directory + file: path=/data state=directory + +- name: Mount data directory + shell: mount 10.0.0.150:/volumeUSB1/usbshare/raw-files /data + ignore_errors: yes + diff --git a/roles/developer-machine/templates/fstab.j2 b/roles/developer-machine/templates/fstab.j2 new file mode 100644 index 0000000..462f472 --- /dev/null +++ b/roles/developer-machine/templates/fstab.j2 @@ -0,0 +1,12 @@ +# /etc/fstab: static file system information. +# +# Use 'blkid' to print the universally unique identifier for a +# device; this may be used with UUID= as a more robust way to name devices +# that works even if disks are added and removed. See fstab(5). +# +# +# / was on /dev/sda1 during installation +UUID=a4a5a54f-1022-47b3-9c50-77c6139d7fc9 / ext4 errors=remount-ro 0 1 +# swap was on /dev/sda5 during installation +UUID=0f47da63-9d7d-487c-8b99-ea7d5497f7f7 none swap sw 0 0 +10.0.0.150:/volumeUSB1/usbshare/raw-files /data nfs defaults 0 0 \ No newline at end of file