Add Slurm AI/HPC cluster platform project
lint / shell-yaml-ansible (push) Failing after 47s

This commit is contained in:
Mateusz Suski
2026-06-04 19:41:05 +00:00
parent e2624a7533
commit d300d490f5
49 changed files with 4777 additions and 0 deletions
@@ -0,0 +1,16 @@
---
- name: Configure /etc/hosts for Slurm cluster
hosts: slurm_cluster
become: true
gather_facts: false
tasks:
- name: Add Slurm cluster hosts to /etc/hosts
ansible.builtin.blockinfile:
path: /etc/hosts
marker: "# {mark} ANSIBLE MANAGED SLURM CLUSTER HOSTS"
block: |
{{ slurm_control_addr }} {{ slurm_control_machine }}
{% for node in slurm_nodes if node.managed_state | default('present') == 'present' %}
{{ node.addr }} {{ node.name }}
{% endfor %}