Skip to content
Snippets Groups Projects
Commit f4453d45 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'slurmdbconf' into 'master'

Slurmdbconf

See merge request hpc-team/ansible_cluster_in_a_box!223
parents 5f2dbde6 49f71286
No related branches found
No related tags found
1 merge request!223Slurmdbconf
...@@ -23,12 +23,18 @@ ...@@ -23,12 +23,18 @@
- name: install slurmdb.conf - name: install slurmdb.conf
copy: src=files/slurmdbd.conf dest={{ slurm_dir }}/etc/slurmdbd.conf copy: src=files/slurmdbd.conf dest={{ slurm_dir }}/etc/slurmdbd.conf
owner: slurm
group: slurm
mode: u+rw,g-wx,o-rwx
sudo: true sudo: true
when: slurm_dir is defined when: slurm_dir is defined
- name: install slurmdbd.conf - name: install slurmdbd.conf
copy: src=slurmdbd.conf dest=/etc/slurm/slurmdbd.conf copy: src=slurmdbd.conf dest=/etc/slurm/slurmdbd.conf
mode: u+rw,g-wx,o-rwx
owner: slurm
group: slurm
sudo: true sudo: true
when: slurm_dir is not defined when: slurm_dir is not defined
......
- name: "restart sshd"
service: name=sshd state=restarted
sudo: true
when: ansible_os_family == "RedHat"
- name: "restart ssh"
service: name=ssh state=restarted
sudo: true
when: ansible_os_family == "Debian"
- name: "Disable Challenge Response"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "ChallengeResponseAuthentication yes"
line: "ChallengeResponseAuthentication no"
backrefs: yes
sudo: true
notify:
- restart sshd
- restart ssh
- name: "Disable Password"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "PasswordAuthentication yes"
line: "PasswordAuthentication no"
backrefs: yes
sudo: true
notify:
- restart sshd
- restart ssh
- name: "Disable Challenge Response"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "ChallengeResponseAuthentication yes"
line: "ChallengeResponseAuthentication no"
backrefs: yes
sudo: true
notify:
- restart sshd
- restart ssh
- name: "Disable Password"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "PasswordAuthentication yes"
line: "PasswordAuthentication no"
backrefs: yes
sudo: true
notify:
- restart sshd
- restart ssh
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