forked from clusterinthecloud/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanagement.yml
73 lines (67 loc) · 1.42 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
72
73
---
- name: install roles
hosts: management
tasks:
- name: Download required roles
command: ansible-galaxy install -r requirements.yml
register: galaxy_result
changed_when: '"was installed successfully" in galaxy_result.stdout'
become: false
delegate_to: localhost
- name: finisher script
hosts: management
tasks:
- name: copy over finisher script
template:
src: roles/finalise/templates/finish.py.j2
dest: /usr/local/bin/finish
mode: 0755
- name: set motd
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
- python
- filesystem
- slurm
- packer
- ssh
- security_updates
- ntp
- sssd
- users
tasks:
- name: copy SSH public keys to slurm account
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
- clustershell
- packages
- devtoolset
- mpi
- sos
- debug_tools
- lmod