summaryrefslogtreecommitdiffstats
path: root/roles/storage/tasks/main.yml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:37:01 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:37:01 +0200
commitb17d3d74eb5a9e7640d94f98f6b27ce4891b3c26 (patch)
tree35b03ed3f6349de7db2482761ff6295aee5ae813 /roles/storage/tasks/main.yml
parent1c830e285e19f2d571cf50ef912f01f0f7d68e10 (diff)
downloaditm-b17d3d74eb5a9e7640d94f98f6b27ce4891b3c26.tar.gz
itm-b17d3d74eb5a9e7640d94f98f6b27ce4891b3c26.tar.bz2
itm-b17d3d74eb5a9e7640d94f98f6b27ce4891b3c26.tar.xz
itm-b17d3d74eb5a9e7640d94f98f6b27ce4891b3c26.zip
Integration of CentOS8 and ipecompute nodes
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'