-
Notifications
You must be signed in to change notification settings - Fork 0
/
leconte.yml
67 lines (61 loc) · 1.4 KB
/
leconte.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
############
# Application dependencies
- name: Package liblz4-leconte into shared directory
copy:
src: "liblz4-leconte_1.7.5_arm64.deb"
dest: "/leconte/shared/liblz4-leconte_1.7.5_arm64.deb"
owner: nvidia
group: "{{projectgroup}}"
mode: "0775"
become: true
when:
- "'master' in group_names"
tags: [apt]
- name: Check if liblz4-leconte is installed
command: dpkg-query -W liblz4-leconte
register: liblz4_leconte_check_deb
failed_when: liblz4_leconte_check_deb.rc > 1
changed_when: liblz4_leconte_check_deb.rc == 1
- name: remove conflicting packages
apt:
name: "{{item}}"
state: absent
with_items:
- liblz4-dev
- notify-osd
become: true
tags: [apt]
- name: Install new liblz4-leconte
apt:
deb: "/leconte/shared/liblz4-leconte_1.7.5_arm64.deb"
become: true
when:
- liblz4_leconte_check_deb.rc == 1
tags: [apt]
############
# Sweet motd bro
- file:
state: absent
path: /etc/update-motd.d/10-help-text
become: true
- name: LeConte MOTD
copy:
src: motd/31-leconte
dest: /etc/update-motd.d/31-leconte
mode: "0755"
owner: root
group: root
become: true
############
# LeConte utility
- name: "LeConte files in {{projectroot}}"
copy:
src: "{{item}}"
dest: "{{projectroot}}/{{item}}"
mode: "0775"
owner: root
group: "{{projectgroup}}"
with_items:
- startup.sh
- runoncluster
become: true