ruby: add role with ruby-specific drive configuration
This commit is contained in:
parent
1afca6be94
commit
7d180f337d
4 changed files with 51 additions and 0 deletions
2
group_vars/ruby/vars.yml
Normal file
2
group_vars/ruby/vars.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
t5_uuid: 'b3b60b45-0bd2-42ac-a8d8-35a44fbd2529'
|
||||||
|
elements_uuid: '5D19-E5D1'
|
||||||
|
|
@ -25,6 +25,9 @@
|
||||||
|
|
||||||
# General compression tools
|
# General compression tools
|
||||||
- bzip2
|
- bzip2
|
||||||
|
|
||||||
|
# Working with BTRFS file systems
|
||||||
|
- btrfs-progs
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ensure cron service is enabled
|
- name: Ensure cron service is enabled
|
||||||
|
|
|
||||||
32
roles/ruby/tasks/main.yml
Normal file
32
roles/ruby/tasks/main.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
- name: Ensure ExFAT tools are present
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- exfat-fuse
|
||||||
|
- exfatprogs
|
||||||
|
state: present
|
||||||
|
|
||||||
|
# - name: Ensure mountpoints are present
|
||||||
|
# file:
|
||||||
|
# path: "{{ item.path }}"
|
||||||
|
# state: directory
|
||||||
|
# mode: '0755'
|
||||||
|
# owner: debian
|
||||||
|
# group: debian
|
||||||
|
# with_items:
|
||||||
|
# - path: '/mnt/data1'
|
||||||
|
# - path: '/mnt/data2'
|
||||||
|
|
||||||
|
- name: Ensure T5 BTRFS is mounted
|
||||||
|
mount:
|
||||||
|
path: /mnt/data1
|
||||||
|
src: "UUID={{ t5_uuid }}"
|
||||||
|
fstype: btrfs
|
||||||
|
state: mounted
|
||||||
|
|
||||||
|
- name: Ensure Elements ExFAT is mounted
|
||||||
|
mount:
|
||||||
|
path: /mnt/data2
|
||||||
|
src: "UUID={{ elements_uuid }}"
|
||||||
|
fstype: exfat
|
||||||
|
state: mounted
|
||||||
14
ruby.yml
Normal file
14
ruby.yml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
- name: Perform common tasks
|
||||||
|
hosts: ruby
|
||||||
|
become: yes
|
||||||
|
roles:
|
||||||
|
- base
|
||||||
|
- common
|
||||||
|
tags: base
|
||||||
|
|
||||||
|
- hosts: ruby
|
||||||
|
become: yes
|
||||||
|
roles:
|
||||||
|
- ruby
|
||||||
|
tags: ruby
|
||||||
Loading…
Add table
Add a link
Reference in a new issue