1
0
Fork 0
mirror of https://github.com/ansible-collections/ansible.posix.git synced 2026-02-04 08:01:49 +00:00

mount: remove boot exception if defaults in opts

This commit is contained in:
copyrights 2022-05-23 22:21:11 +02:00 committed by Hideki Saito
parent afa724ba8a
commit 2041e7f918
No known key found for this signature in database
GPG key ID: 3E1D43AA010AC50A
3 changed files with 24 additions and 5 deletions

View file

@ -850,11 +850,8 @@ def main():
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.")
elif not module.params['boot']:
args['boot'] = 'no'
if 'defaults' in opts:
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'defaults'.")
else:
opts.append('noauto')
args['opts'] = ','.join(opts)
opts.append('noauto')
args['opts'] = ','.join(opts)
# If fstab file does not exist, we first need to create it. This mainly
# happens when fstab option is passed to the module.