Remove ZFS load key
This commit is contained in:
parent
d8c68f589a
commit
7fa7e2931d
@ -9,8 +9,6 @@ system_zfs_zpools:
|
|||||||
system_zfs_zpools_trim:
|
system_zfs_zpools_trim:
|
||||||
- "bpool"
|
- "bpool"
|
||||||
- "rpool"
|
- "rpool"
|
||||||
system_zfs_zpools_load_key:
|
|
||||||
- "hpool"
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------------------------
|
||||||
# system:mail
|
# system:mail
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
system_zfs_zpools: []
|
system_zfs_zpools: []
|
||||||
system_zfs_zpools_trim: []
|
system_zfs_zpools_trim: []
|
||||||
system_zfs_zpools_load_key: []
|
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Load encryption key for a ZFS pool
|
|
||||||
Documentation=man:zfs(8)
|
|
||||||
DefaultDependencies=no
|
|
||||||
After=systemd-udev-settle.service
|
|
||||||
After=zfs-import.target
|
|
||||||
After=systemd-remount-fs.service
|
|
||||||
Before=zfs-mount.service
|
|
||||||
ConditionPathIsDirectory=/sys/module/zfs
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
ExecStart=/sbin/zfs load-key %i
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=zfs.target
|
|
@ -13,7 +13,3 @@ argument_specs:
|
|||||||
type: "list"
|
type: "list"
|
||||||
elements: "str"
|
elements: "str"
|
||||||
required: true
|
required: true
|
||||||
system_zfs_zpools_load_key:
|
|
||||||
type: "list"
|
|
||||||
elements: "str"
|
|
||||||
required: true
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
- name: "load_key : zfs load key service file"
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: "./load_key/zfs-load-key@.service"
|
|
||||||
dest: "/etc/systemd/system/zfs-load-key@.service"
|
|
||||||
mode: 0644
|
|
||||||
register: system_zfs_load_key_service_file
|
|
||||||
|
|
||||||
- name: "load_key : systemd daemon reload"
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
daemon_reload: true
|
|
||||||
when:
|
|
||||||
system_zfs_load_key_service_file.changed
|
|
||||||
|
|
||||||
- name: "load_key : enable service to load key for {{ item }}"
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: "zfs-load-key@{{ item }}.service"
|
|
||||||
enabled: true
|
|
||||||
state: "started"
|
|
||||||
loop: "{{ system_zfs_zpools_load_key }}"
|
|
@ -14,7 +14,3 @@
|
|||||||
- name: "play:system : role:zfs : tasks:scrub"
|
- name: "play:system : role:zfs : tasks:scrub"
|
||||||
ansible.builtin.import_tasks: "include/scrub.yml"
|
ansible.builtin.import_tasks: "include/scrub.yml"
|
||||||
tags: "system:zfs:scrub"
|
tags: "system:zfs:scrub"
|
||||||
|
|
||||||
- name: "play:system : role:zfs : tasks:load_key"
|
|
||||||
ansible.builtin.import_tasks: "include/load_key.yml"
|
|
||||||
tags: "system:zfs:load_key"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user