Skip to content
Snippets Groups Projects
Commit 6f17a9bf authored by Chris Hines's avatar Chris Hines
Browse files

Mount nvme disks on /mnt/nvme

addresses #34
parent 59996c01
No related branches found
No related tags found
3 merge requests!519Mount nvme disks on /mnt/nvme,!517modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!513modifications to playbooks because 1. we're not using ldap 2. we're mounting...
...@@ -4,15 +4,35 @@ ...@@ -4,15 +4,35 @@
path: /raid path: /raid
register: raiddir register: raiddir
- name: Set /mnt/nvme as spankprivatetmpdir if present - block:
file: - parted:
src: /mnt/nvme device: /dev/nvme0n1
dest: "{{ spankprivatetmpmount }}" flags: [lvm]
owner: root label: gpt
group: root number: 1
mode: u=rwx,g=rx,o=rx state: present
state: link become: true
become: true
- filesystem:
fstype: ext4
dev: /dev/nvme0n1p1
become: true
- mount:
fstype: ext4
src: /dev/nvme0n1p1
state: mounted
path: /mnt/nvme
become: true
- name: Set /mnt/nvme as spankprivatetmpdir if present
file:
src: /mnt/nvme
dest: "{{ spankprivatetmpmount }}"
owner: root
group: root
mode: u=rwx,g=rx,o=rx
state: link
become: true
when: hostvars[inventory_hostname]['ansible_devices']['nvme0n1'] is defined when: hostvars[inventory_hostname]['ansible_devices']['nvme0n1'] is defined
- name: Link /raid as spankprivatetmpdir if present - name: Link /raid as spankprivatetmpdir if present
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment