From b17d3d74eb5a9e7640d94f98f6b27ce4891b3c26 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 6 Oct 2019 04:37:01 +0200 Subject: Integration of CentOS8 and ipecompute nodes --- roles/storage/tasks/main.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'roles/storage/tasks/main.yml') 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' -- cgit v1.2.3