Debian 12 deploy fixes

This commit is contained in:
Wojciech Kozlowski 2023-09-30 23:44:56 +02:00
parent 7e6021d2ab
commit 9fe284294a
6 changed files with 29 additions and 3 deletions

View File

@ -38,8 +38,6 @@ system_base_unattended_upgrades_blacklist:
# --------------------------------------------------------------------------------------------------
# system:var
# --------------------------------------------------------------------------------------------------
system_var_root_directory: "/var/lib/yggdrasil"
system_var_root_dataset: "rpool{{ system_var_root_directory }}"
system_var_data_dataset: "rpool{{ system_var_data_directory }}"
system_var_containers_dataset: "rpool{{ system_var_containers_directory }}"

View File

@ -0,0 +1,7 @@
[storage]
graphroot="/var/lib/containers/storage"
runroot="/var/run/containers/storage"
driver = "overlay"
[storage.options]
mount_program = "/usr/bin/fuse-overlayfs"

View File

@ -11,3 +11,6 @@ argument_specs:
services_containers_directory:
type: "str"
required: true
services_setup_system_containers_storage_fuse_overlay:
type: "bool"
required: true

View File

@ -8,3 +8,19 @@
ansible.builtin.reboot:
when:
services_setup_system_podman_install.changed
- block:
- name: "podman : configure podman storage"
ansible.builtin.copy:
src: "./podman/storage.conf"
dest: "/etc/containers/storage.conf"
mode: 0644
register: services_setup_system_containers_storage
- name: "podman : reset podman"
ansible.builtin.shell: "yes | podman system reset"
when:
services_setup_system_containers_storage.changed
when:
services_setup_system_containers_storage_fuse_overlay

View File

@ -33,6 +33,8 @@
tags:
- "services:setup"
- "services:setup:system"
vars:
services_setup_system_containers_storage_fuse_overlay: "{{ 'zfs' in group_names }}"
tasks:
- name: "setup : user"

2
roles

@ -1 +1 @@
Subproject commit cf0aaef4eeb0d3fe4d8cfe939dc6955b24990329
Subproject commit 9b57350d92f221571d6a075f3e7e403c33e436ad