In step 4, I would add that it is not necessary to copy the files to the python lib directory. Ansible works relative to where you run your playbook. you could have a directory with your playbook and have a library and module_utils directory there. This makes it more portable.
ansible is basically a python module. If you have python available, you can just pip install ansible. Sorry, I am not calling you out. I just feel like people get too caught up in Linux versions. And to that end, minor releases. This should work RHEL7, OL7, CentOS7, Ubuntu XX.XX.
In looking at the module, this seems like it is going to create the path if it does not exist. That's not exactly a "get". Could you please clarify this? Almost seems appropriate to create another module that gets info.
In the "NFS Export Module parameters" section of the doc, and page 23-24, there is an explanation of the path parameters. The screen shot below is not very clear, but I have copied the text directly here as well:
****
Directory path to be exported. For non-system access zones, this path is a relative path from the base of the access zone.
The path must exist. The NFS module does not create the path.
****
So, the document seems to state it will not create the path.
If you find that it does create a path, let us know and then the engineers will need to look into that deeper issue.
I assume that you are looking for example tasks/playbooks. Those can be seen by using the ansible-doc command or even just viewing the module's python code.
cocampbe
36 Posts
0
June 18th, 2020 06:00
In step 4, I would add that it is not necessary to copy the files to the python lib directory. Ansible works relative to where you run your playbook. you could have a directory with your playbook and have a library and module_utils directory there. This makes it more portable.
For reference: https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#directory-layout
cocampbe
36 Posts
0
June 18th, 2020 06:00
Why is this a prereq?
Red Hat Enterprise Linux 7.6
ansible is basically a python module. If you have python available, you can just pip install ansible. Sorry, I am not calling you out. I just feel like people get too caught up in Linux versions. And to that end, minor releases. This should work RHEL7, OL7, CentOS7, Ubuntu XX.XX.
cocampbe
36 Posts
0
October 22nd, 2020 12:00
Started working with the module again. The docs provide this example:
In looking at the module, this seems like it is going to create the path if it does not exist. That's not exactly a "get". Could you please clarify this? Almost seems appropriate to create another module that gets info.
FoolInTheRain
123 Posts
0
October 27th, 2020 08:00
Hi Cocampbe,
In the "NFS Export Module parameters" section of the doc, and page 23-24, there is an explanation of the path parameters. The screen shot below is not very clear, but I have copied the text directly here as well:
****
Directory path to be exported. For non-system access zones, this path is a relative path from the base of the access zone.
The path must exist. The NFS module does not create the path.
****
So, the document seems to state it will not create the path.
If you find that it does create a path, let us know and then the engineers will need to look into that deeper issue.
Sbandreddi
1 Rookie
•
8 Posts
1
May 19th, 2021 02:00
Hi
I have installed this module, but Unable to find the Yaml files under /ansible-isilon/dellemc_ansible/isilon/. I can only see library folder.
bmcfeeters
1 Rookie
•
72 Posts
1
May 19th, 2021 10:00
Hello Sbandreddi,
I assume that you are looking for example tasks/playbooks. Those can be seen by using the ansible-doc command or even just viewing the module's python code.
We have examples for Isilon/PowerScale and other array platforms available on this GitHub repository as well.
https://github.com/dell/ansible-storage-automation
Thanks
Bryan
Mokrina
2 Posts
0
July 26th, 2021 10:00
Posted on the wrong thread. Sorry.