Updated stuff for fstab
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
12
roles/developer-machine/templates/fstab.j2
Normal file
12
roles/developer-machine/templates/fstab.j2
Normal file
@@ -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).
|
||||
#
|
||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||
# / 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
|
||||
Reference in New Issue
Block a user