Add Vagrantfile for local testing

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola
2023-11-08 13:42:11 -08:00
parent 0cd9ffc17f
commit 9ecdc933ca
10 changed files with 88 additions and 7 deletions

View File

@@ -34,7 +34,7 @@
ansible_facts.lsb.description|default("") is match("Debian") )
- name: Set detected_distribution to ArchLinux (ARM64)
set_fact:
ansible.builtin.set_fact:
detected_distribution: Archlinux
when:
- ansible_facts.architecture is search("aarch64")

View File

@@ -1,14 +1,15 @@
---
- name: Enable cgroup via boot commandline if not already enabled for Archlinux
lineinfile:
ansible.builtin.lineinfile:
path: /boot/boot.txt
search_string: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"
line: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}" cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
register: kernel_cmdline_cgroup
- name: Create
shell: ./mkscr
ansible.builtin.command: ./mkscr
args:
chdir: /boot
notify: reboot
when: kernel_cmdline_cgroup.changed
changed_when: false
when: kernel_cmdline_cgroup.changed # noqa: no-handler