-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
account sufficient pam_slurm_adopt.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- name: Install packages for pam_slurm_adopt | ||
ansible.builtin.apt: | ||
name: | ||
- "libslurm37={{ slurm_version_with_release }}" | ||
- "libpam-slurm-adopt={{ slurm_client_version_with_release }}" | ||
state: present | ||
update_cache: true | ||
|
||
- name: Comment-out the PAM module pam_systemd as instructed by the pam_slurm_adopt guide | ||
ansible.builtin.replace: | ||
path: /etc/pam.d/common-session | ||
regexp: '^(session.*pam_systemd\.so)\s*$' | ||
replace: '# \1 # ANSIBLE-MANAGED: incompatible with pam_slurm_adopt' | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
|
||
- name: Add the PAM module pam_slurm_adopt at the bottom of the sshd stack | ||
ansible.builtin.blockinfile: | ||
path: /etc/pam.d/sshd | ||
block: "{{ lookup('file', 'sshd-pam-slurm-adopt') }}" | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters