-
Notifications
You must be signed in to change notification settings - Fork 153
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
ansible.posix.mount module doesn't work #21
Comments
Seems the ismount module doesn't work here. |
@yizhanglinux Thank you for taking the time to raise this. It appears to be a bug in ansible-base. There is a proposed fix in ansible/ansible#68223, does that work for you? |
Still doesn't work, from the log seems the ismount module still not callable
|
confirmed with ansible 2.9 but not with ansible 2.10beta ... so now on to bisecting :) |
In Ansible 2.9 (pre 2.10 routing), the AnsiballZ creation of the payload will add an extra directory to the module_util path because ismount.py shares the same name as it's parent dir which creates an inconsistency in the payload creation. This causes the Collection module ansible.posix.mount to work in Ansible 2.10 but not 2.9, with this pull request a simple renaming of the module_util which side steps this inconsistency. Fixes ansible-collections#21 Signed-off-by: Adam Miller <[email protected]>
SUMMARY
ansible.posix.mount module doesn't work
ISSUE TYPE
COMPONENT NAME
mount
ANSIBLE VERSION
[root@storageqe-62 ~]# ansible --version
[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.
ansible 2.10.0.dev0
config file = /root/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible_base-2.10.0.dev0-py3.6.egg/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
CONFIGURATION
OS / ENVIRONMENT
RHEL8.2
STEPS TO REPRODUCE
EXPECTED RESULTS
mount module works well
ACTUAL RESULTS
mount module doesn't work
The text was updated successfully, but these errors were encountered: