Skip to content

Commit 682404d

Browse files
committed
fixes
1 parent e350b94 commit 682404d

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ svsm.bin
1414
bzImage
1515
coconut-qemu.igvm
1616

17+
# Ansible inventories
18+
ansible/inventory
19+
1720
# Kubernetes stuff
1821
.config
1922

ansible/inventory/vms.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

ansible/tasks/apt.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
- ca-certificates
1616
- curl
1717
- gnupg2
18+
- libssl-dev
19+
- pkg-config
1820
- software-properties-common
1921
- python3.10-dev
2022
- python3-pip

ansible/tasks/code.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
path: "/home/{{ ansible_user }}/git"
66
state: directory
77

8-
- name: "Clone repos"
8+
- name: "Clone SC2 repos"
99
git:
1010
repo: "https://www.github.com/sc2-sys/{{ item }}.git"
1111
dest: "/home/{{ ansible_user }}/git/sc2-sys/{{ item }}"
@@ -20,3 +20,15 @@
2020
- "deploy"
2121
- "experiments"
2222

23+
- name: "Clone virtee repos"
24+
git:
25+
repo: "https://www.github.com/virtee/{{ item }}.git"
26+
dest: "/home/{{ ansible_user }}/git/virtee/{{ item }}"
27+
depth: 1
28+
update: yes
29+
recursive: no
30+
clone: yes
31+
force: yes
32+
accept_hostkey: yes
33+
with_items:
34+
- "snphost"

ansible/tasks/update_host_kernel.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,20 @@
88

99
# Step 2: Install the .deb kernel package
1010
- name: "Install the new kernel package"
11+
become: true
1112
apt:
1213
deb: "/tmp/linux-image.deb"
1314
state: present
1415

1516
# Step 3: Update the grub configuration to use the new kernel
1617
- name: "Update GRUB to use the new kernel"
18+
become: true
1719
command: update-grub
1820

1921
# Step 4: Reboot the system to load the new kernel
2022
- name: "Reboot the system to apply the new kernel"
23+
become: true
2124
reboot:
2225
reboot_timeout: 600
2326
test_command: uname -r
2427
register: reboot_result
25-
26-
# Step 5: Verify the kernel version after reboot
27-
# TODO: delete me
28-
- name: Check the new kernel version after reboot
29-
debug:
30-
msg: "Using host kernel: {{ reboot_result.stdout }}"
31-
when: reboot_result is succeeded

ansible/vm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
gather_facts: yes
55
tasks:
66
- include_tasks: tasks/apt.yaml
7+
# - include_tasks: tasks/update_host_kernel.yaml
78
- include_tasks: tasks/rust.yaml
89
- include_tasks: tasks/docker.yaml
910
- include_tasks: tasks/code.yaml
1011
- include_tasks: tasks/pull_images.yaml
11-
- include_tasks: tasks/update_host_kernel.yaml
1212
# - include_tasks: tasks/sc2.yml

0 commit comments

Comments
 (0)