Filesystems module runs 'chfs' when attributes are specified, even if already set to the correct values.
If I specify any attribute other than size, for example:
attributes: log=INLINE
or
attributes: options=noatime
whenever the playbook is run, the module performs a chfs to set the attribute regardless of the existing filesystem having that attribute already set.
To Reproduce
Specify any attribute when using the filesystem module, other than size. I have seen this behaviour with options=noatime and log=INLINE. When only size is specified, the module correctly reports nothing to change.
Expected behavior
No action taken when filesystems already have the required attributes, not running chfs every time.
Filesystems module runs 'chfs' when attributes are specified, even if already set to the correct values.
If I specify any attribute other than size, for example: attributes: log=INLINE or attributes: options=noatime
whenever the playbook is run, the module performs a chfs to set the attribute regardless of the existing filesystem having that attribute already set.
To Reproduce Specify any attribute when using the filesystem module, other than size. I have seen this behaviour with options=noatime and log=INLINE. When only size is specified, the module correctly reports nothing to change.
Expected behavior No action taken when filesystems already have the required attributes, not running chfs every time.
Screenshots Code:
Modification every time playbook is run:
Excerpt of /etc/filesystems showing log=INLINE already set:
lsfs output showing inline log already set:
Environment (please complete the following information):
Additional context If only the size attribute is set, the module makes no changes, as expected: