Skip to content
Snippets Groups Projects
Commit 3fe956c8 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Add role to install LBNL Node Health Check tool

parent 6ba43b6a
No related branches found
No related tags found
2 merge requests!63Fix compute and GPU img builds,!57Feat install nhc
---
- name: Download the rpm
ansible.builtin.get_url:
url: "{{ nhc_download_url }}"
dest: "{{ nhc_download_path }}"
- name: Clone the NHC config repo
ansible.builtin.git:
repo: "{{ nhc_git_repo }}"
dest: "{{ nhc_git_repo_path }}"
- name: Install NHC
ansible.builtin.yum:
name: "{{ nhc_download_path }}"
state: latest
- name: Create test files to ensure that a file on GPFS is readable
ansible.builtin.file:
path: "{{ item }}"
state: touch
loop:
- /data/.nhc-test
- /scratch/.nhc-test
- name: Copy config files
ansible.builtin.copy:
src: "{{ nhc_git_repo_path }}/{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: '0644'
remote_src: true
loop:
- { src: 'nhc/nhc.conf' , dest: '/etc/nhc/' }
- { src: 'nhc/nhc.etc.sysconfig', dest: '/etc/sysconfig/nhc/' }
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