# Memory for the Podman VM that runs Hermes's sandbox. Changing it means a # stop/start, which ends any sandbox containers that are running. - name: Read Podman VM memory ansible.builtin.command: argv: [/opt/podman/bin/podman, machine, inspect, --format, !unsafe "{{.Resources.Memory}}"] register: podman_memory changed_when: false check_mode: false - name: Resize the Podman VM ansible.builtin.shell: | set -e /opt/podman/bin/podman machine stop /opt/podman/bin/podman machine set --memory {{ podman_machine_memory }} /opt/podman/bin/podman machine start when: podman_memory.stdout | int != podman_machine_memory