瀏覽代碼

configure swap_devices

master
父節點
當前提交
b81ca98092
共有 1 個檔案被更改,包括 16 行新增0 行删除
  1. +16
    -0
      vars/main.yml

+ 16
- 0
vars/main.yml 查看文件

@@ -6,6 +6,7 @@ _host_vars:
volume_groups: "{{ _volume_groups[partitioning_profile] }}"
logical_volumes: "{{ _logical_volumes[partitioning_profile] }}"
filesystems: "{{ _filesystems[partitioning_profile] }}"
swap_devices: "{{ _swap_devices[partitioning_profile] }}"

_label_type:
efi-mdraid-lvm: gpt
@@ -86,6 +87,7 @@ _fs_uuid_root: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' root'
_fs_uuid_boot: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' boot') }}"
_fs_uuid_rescue: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' rescue') }}"
_fs_uuid_select: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' select') }}"
_fs_uuid_swap: "{{ lookup('pipe','uuid -v5 '+filesystem_uuid_namespace+' swap') }}"


_filesystems:
@@ -163,3 +165,17 @@ _filesystems:
- device: /dev/disk/by-partlabel/{{_efi_partlabel}}
mount_point: /boot/efi
fstype: vfat

_swap_devices:
bios-mbr-dmcrypt-lvm:
- device: /dev/{{_volume_group_name}}/swap
uuid: "{{ _fs_uuid_swap }}"
efi-dmcrypt-lvm:
- device: /dev/{{_volume_group_name}}/swap
uuid: "{{ _fs_uuid_swap }}"
bios-gpt-mdraid-lvm:
- device: /dev/{{_volume_group_name}}/swap
uuid: "{{ _fs_uuid_swap }}"
efi-mdraid-lvm:
- device: /dev/{{_volume_group_name}}/swap
uuid: "{{ _fs_uuid_swap }}"

Loading…
取消
儲存