From b81ca9809234795f40a0e60692f921b87c4bbda2 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Wed, 11 Oct 2017 20:31:00 +0000 Subject: [PATCH] configure swap_devices --- vars/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vars/main.yml b/vars/main.yml index 3f5b3f6..0218142 100644 --- a/vars/main.yml +++ b/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 }}"