|
@@ -1,4 +1,4 @@
|
|
-# Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
|
|
|
|
|
|
+# Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
|
|
#
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# you may not use this file except in compliance with the License.
|
|
@@ -57,10 +57,23 @@
|
|
name: "{{ common_packages }}"
|
|
name: "{{ common_packages }}"
|
|
state: present
|
|
state: present
|
|
tags: install
|
|
tags: install
|
|
|
|
+ when: os_supported_leap not in compute_os
|
|
|
|
+
|
|
|
|
+- name: Install packages for slurm
|
|
|
|
+ package:
|
|
|
|
+ name: "{{ leap_common_packages }}"
|
|
|
|
+ state: present
|
|
|
|
+ when: os_supported_leap in compute_os
|
|
|
|
|
|
- name: Create munge key
|
|
- name: Create munge key
|
|
command: "{{ munge_cmd }}"
|
|
command: "{{ munge_cmd }}"
|
|
changed_when: true
|
|
changed_when: true
|
|
|
|
+ when: os_supported_leap not in compute_os
|
|
|
|
+
|
|
|
|
+- name: Create munge key
|
|
|
|
+ shell: dd if=/dev/random bs=1 count=1024 >/etc/munge/munge.key
|
|
|
|
+ changed_when: true
|
|
|
|
+ when: os_supported_leap in compute_os
|
|
|
|
|
|
- name: Copy munge key
|
|
- name: Copy munge key
|
|
copy:
|
|
copy:
|
|
@@ -218,4 +231,4 @@
|
|
state: restarted
|
|
state: restarted
|
|
enabled: yes
|
|
enabled: yes
|
|
tags: install
|
|
tags: install
|
|
- failed_when: false
|
|
|
|
|
|
+ failed_when: false
|