Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mount] always set yes to "mount at boot" on Solaris even if boot set false #184

Closed
saito-hideki opened this issue May 11, 2021 · 0 comments · Fixed by #185
Closed

[mount] always set yes to "mount at boot" on Solaris even if boot set false #184

saito-hideki opened this issue May 11, 2021 · 0 comments · Fixed by #185

Comments

@saito-hideki
Copy link
Collaborator

SUMMARY

For Solaris node, even if the boot option set false(or no), mount module will set mount at boot to yes in /etc/vfstab

ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • ansible.posix.mount
ANSIBLE VERSION
devel (2.12.0.dev0)
CONFIGURATION
$ ansible-config dump --only-changed
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying
out features under development. This is a rapidly changing source of code and can become unstable at any point.
COLLECTIONS_PATHS(/home/hsaito/work/src/saito-hideki/ansible_collections/ansible/posix/ansible.cfg) = ['/home/hsaito/work/src/saito-hideki/ansible_collection>
HOST_KEY_CHECKING(/home/hsaito/work/src/saito-hideki/ansible_collections/ansible/posix/ansible.cfg) = False
OS / ENVIRONMENT
  • Control node: CentOS 8 Stream
  • Managed node: Oracle Solaris 11.4 X86
STEPS TO REPRODUCE

launch the following task in playbook:

    - ansible.posix.mount:
        src: 192.168.100.100:/var/data/pv00
        path: /mnt
        opts: rw
        state: mounted
        fstype: nfs
        boot: false
EXPECTED RESULTS
$ cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
...<snip>...
192.168.100.100:/var/data/pv00 - /mnt nfs - no rw
ACTUAL RESULTS
$ cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
...<snip>...
192.168.100.100:/var/data02/pv00 - /mnt nfs - yes rw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant