8000 zfs modules isn't idempotent when setting encryption: "on" · Issue #10226 · ansible-collections/community.general · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
zfs modules isn't idempotent when setting encryption: "on" #10226
Open
@tomhesse

Description

@tomhesse

Summary

When using the encryption parameter with the value true or “on”, ZFS uses the standard encryption suite. For the module to be idempotent, encryption: true/“on” must be handled like encryption: aes-256-gcm. Otherwise the module will fail because the encryption property can only be set at dataset creation. At the time of writing aes-256-gcm is the default encryption suite.

Issue Type

Feature Idea

Component Name

zfs

Additional Information

- name: Ensure dataset exists
  community.general.zfs:
    name: tank/dataset
    state: present
    extra_zfs_properties:
      encryption: "on"
      keylocation: file:///etc/zfs/keys/dataset.key
      keyformat: raw

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue/PR relates to a feature requestmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0