-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresearch-cloud-plugin.yml
More file actions
64 lines (53 loc) · 1.7 KB
/
research-cloud-plugin.yml
File metadata and controls
64 lines (53 loc) · 1.7 KB
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
- name: Install and configure AMUSE
hosts:
- all
- localhost
gather_facts: false
tasks:
- name: Wait for system to become reachable
wait_for_connection:
timeout: 300
- name: Gather facts for first time
setup:
- name: include role build_essentials
include_role:
name: build_essentials
- name: include role AMUSE prerequisites
include_role:
name: amuse_prereq
- name: include role amuse install
include_role:
name: amuse
when: amuse_devel_install is undefined or not amuse_devel_install
- name: include role amuse-tests install
include_role:
name: amuse-tests
when: amuse_devel_install is undefined or not amuse_devel_install
- name: include role amuse-dev if amuse_devel_install
include_role:
name: amuse-dev
when: amuse_devel_install is defined and amuse_devel_install
- name: configure openmpi for oversubscribe
blockinfile:
path: /etc/openmpi/openmpi-mca-params.conf
marker: "\n# {mark} ansible managed \n"
block: |
rmaps_base_oversubscribe = 1
rmaps_base_inherit = 1
# better fix .amusrc for each user
- name: set some things in amuserc
ini_file:
path: /usr/local/lib/python3.8/dist-packages/amuse/amuserc
section: channel
option: polling_interval_in_milliseconds
value: 1
- name: Clean apt cache
apt:
autoclean: yes
autoremove: yes
- name: optionally add users from list of users
include_tasks: create_user.yml
when: list_of_users is defined
- name: Debug
debug:
msg: The AMUSE (jupyter) plugin has completed