-
Notifications
You must be signed in to change notification settings - Fork 26
/
management.yml
71 lines (65 loc) · 1.39 KB
/
management.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
- name: Install roles
hosts: management
tasks:
- name: Download required roles
community.general.ansible_galaxy_install:
type: both
requirements_file: requirements.yml
become: false
delegate_to: localhost
- name: Finisher script
hosts: management
tasks:
- name: Copy over finisher script
ansible.builtin.template:
src: roles/finalise/templates/finish.py.j2
dest: /usr/local/bin/finish
mode: "0755"
- name: Set motd
ansible.builtin.copy:
content: |
######################
Welcome to the cluster
Please now create users and define the number of nodes you want.
######################
dest: /etc/motd
mode: u=rw,g=r,o=r
- name: Common
hosts: all
tags: common
roles:
- citc_user
- ldap
- mysql
- filesystem
- slurm
- packer
- ssh
- security_updates
- ntp
- sssd
- users
tasks:
- name: Copy SSH public keys to slurm account
ansible.builtin.copy:
src: "{{ admin_key_path }}"
dest: /home/slurm/opc_authorized_keys
owner: slurm
group: slurm
mode: "0600"
- name: Finalise
hosts: all
tags: finalise
roles:
- finalise
- apps
- get_secrets
- webui
- monitoring
- packages
- devtoolset
- mpi
- sos
- debug_tools
- lmod