summaryrefslogtreecommitdiffstats
path: root/roles/storage/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/storage/tasks/main.yml')
-rw-r--r--roles/storage/tasks/main.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/roles/storage/tasks/main.yml b/roles/storage/tasks/main.yml
index 871e785..014e396 100644
--- a/roles/storage/tasks/main.yml
+++ b/roles/storage/tasks/main.yml
@@ -1,9 +1,17 @@
---
-- name: Ensure NFS common is installed.
- package: name=nfs-utils state=present
+- name: Ensure required software is installed.
+ package: name="{{ item }}" state=present
+ with_items: [ 'parted', 'mdadm', 'nfs-utils' ]
-- name: Create mountable dir
- file: path=/mnt/ands state=directory mode=755 owner=root group=root
+- debug: msg="{{ inventory_hostname }}"
-- name: set mountpoints
- mount: name=/mnt/ands src=192.168.26.140:/mnt/ands fstype=nfs4 opts=defaults,minorversion=1,_netdev,nofail,soft,nodiratime,noatime dump=0 passno=0 state=mounted
+- name: configure network fs
+ include_tasks: nfs.yml
+
+- name: configure ipepdvcompute2
+ include_tasks: ipecompute2.yml
+ when: inventory_hostname == '192.168.26.132'
+
+- name: configure ipepdvcompute4
+ include_tasks: ipecompute4.yml
+ when: inventory_hostname == '192.168.26.134'