Skip to content

Commit 54b917b

Browse files
committed
Added support for debian 13
1 parent 547bb71 commit 54b917b

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

tasks/main-blivet.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
---
2+
- name: Add blivet package repository
3+
when: ansible_facts['os_family'] == "Debian"
4+
block:
5+
- name: Add repo key
6+
ansible.builtin.command:
7+
cmd: "wget https://download.opensuse.org/repositories/home:vtrefny/Debian_Unstable/Release.key -O /etc/apt/trusted.gpg.d/home_vtrefny.asc"
8+
9+
- name: Add blivet repo
10+
ansible.builtin.apt_repository:
11+
repo: "deb http://download.opensuse.org/repositories/home:/vtrefny/Debian_Unstable/ /"
12+
state: present
13+
214
- name: Make sure blivet is available
315
package:
416
name: "{{ blivet_package_list }}"
@@ -67,6 +79,7 @@
6779
storage_cryptsetup_services: "{{
6880
ansible_facts.services.values() |
6981
selectattr('name', 'defined') |
82+
selectattr('status', 'defined') |
7083
rejectattr('status', 'match', '^not-found$') |
7184
rejectattr('status', 'match', '^masked$') |
7285
rejectattr('status', 'match', '^failed$') |

vars/Debian_13.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
blivet_package_list:
3+
- python3-blivet
4+
- libblockdev-crypto3
5+
- libblockdev-dm3
6+
- libblockdev-fs3
7+
- libblockdev-lvm3
8+
- libblockdev-mdraid3
9+
- libblockdev-swap3
10+
- mdadm

0 commit comments

Comments
 (0)