-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsetup.yaml
More file actions
53 lines (53 loc) · 1.35 KB
/
setup.yaml
File metadata and controls
53 lines (53 loc) · 1.35 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
---
- name: Initialize Mir benchmark VM
hosts: all
gather_facts: False
become: False
environment:
PATH: "{{ ansible_env.PATH }}:/home/{{ ansible_user }}/go/bin"
tasks:
- name: "Install Go"
become: True
community.general.snap:
name:
- go
classic: True
channel: 1.19/stable
state: present
- name: "Install snaps"
become: True
community.general.snap:
name:
- protobuf
classic: True
state: present
- name: "Install apt packages"
become: True
ansible.builtin.apt:
name:
- make
- python3
- gcc
- tmux
update_cache: True
state: present
- name: Clone Mir repo from GitHub ({{ git_repo }})
ansible.builtin.git:
repo: "{{ git_repo }}"
dest: ~/mir
- name: "Check out the selected code version: {{ git_version }}"
ansible.builtin.git:
repo: "{{ git_repo }}"
dest: ~/mir
single_branch: True
version: "{{ git_version }}"
force: True
- name: compile Mir benchmark
make:
chdir: ~/mir
target: bin/bench
- name: "Run setup script"
ansible.builtin.script:
# Single quotes are important here (https://github.com/ansible/ansible/issues/44897)
cmd: scripts/setup.sh
...