Open rbnhln opened 1 year ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @bcoca @fishman @jasperla @jpdasma @mator @scathatheworm @troy2914 @xen0l click here for bot help
!component=plugins/modules/zfs.py
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @johanwiren click here for bot help
I had a similar issue
The task:
- name: "Create ZFS root filesystem"
become: true
community.general.zfs:
name: "{{ zfs_root_filesystem }}"
state: present
extra_zfs_properties:
atime: "off"
Worked without issues when the filesystem didn't exist on the host. But when I run the task again on the same host and the filesystem exists I get this error:
fatal: [xxx.xxx.xxx.xxx]: FAILED! => {"changed": false, "msg": "zfsprop was not present after being successfully set: atime"}
Workaround:
- name: "Create ZFS root filesystem"
become: true
community.general.zfs:
name: "{{ zfs_root_filesystem }}"
state: present
- name: "Set ZFS property"
become: true
ansible.builtin.command: "zfs set atime=off {{ zfs_root_filesystem }}"
Also running into this (with "userquota" specifically) on Ansible 2.16.8. The workaround of running a zfs command works, but is a bit annoying, because it reports a "change" every time.
Summary
When I try to change the user quota in a ZFS dataset using ansible, the value is changed but ansible reports an error.
Ansible returns:
But the destination system returns after:
Issue Type
Bug Report
Component Name
plugins/modules/zfs.py
Ansible Version
Community.general Version
Configuration
OS / Environment
macOS 13.0
Steps to Reproduce
Expected Results
Do not show error message.
Actual Results
Value is successfully changed, but error message is shown.
Code of Conduct