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

a whole bunch of updates to make ansible work correctly for my test cluster

parent 0af09735
No related branches found
No related tags found
No related merge requests found
- name: "restart sshd"
service: name=sshd state=restarted
sudo: true
- name: "Enable Challenge Response"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "ChallengeResponseAuthentication no"
line: "ChallengeResponseAuthentication yes"
backrefs: yes
sudo: true
notify: restart sshd
- name: "Enable Challenge Response"
lineinfile:
args:
dest: /etc/ssh/sshd_config
regexp: "PasswordAuthentication no"
line: "PasswordAuthentication yes"
backrefs: yes
sudo: true
notify: restart sshd
- name: "Set login node"
set_fact:
loginNode: "{{ ansible_eth0.ipv4.address }}"
- name: "Temlate Strudel config"
template: src=generic_slurm_config.json.j2 dest=/tmp/Strudel_Desktops.json
delegate_to: 127.0.0.1
run_once: True
This diff is collapsed.
......@@ -4,4 +4,17 @@
delegate_to: "{{ nfs_server }}"
run_once: true
sudo: true
notify: "Reload exports"
# Do not do this as a handler, instead do this here as a task so that it happens imediatly after the exports file is created before any clients
# attempt a mount
- name : "Reload exports"
command: exportfs -ra
delegate_to: "{{ nfs_server }}"
run_once: true
sudo: true
- name : "Pause ... clients sometimes have errors"
command: sleep 60
delegate_to: "{{ nfs_server }}"
run_once: true
sudo: true
---
- include_vars: "{{ hostvars[ansible_hostname]['ansible_distribution'] }}_{{ ansible_architecture }}.yml"
#- include_vars: "{{ hostvars[ansible_hostname]['ansible_distribution'] }}_{{ ansible_architecture }}.yml"
- include_vars: "{{ ansible_distribution }}_{{ ansible_architecture }}.yml"
- name: add repos apt
shell: "add-apt-repository -y 'deb {{ item }} {{ ansible_distribution_release }} main' "
......
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