mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-07 06:34:23 -07:00
NOX Errors
This commit is contained in:
parent
7dd2544217
commit
fafc2c0a64
2 changed files with 19 additions and 8 deletions
|
@ -1,7 +1,10 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
#!/usr/bin/python
|
||||||
|
|
||||||
# Copyright: (c) 2025, Samaneh Yousefnezhad <s-yousefenzhad@um.ac.ir>
|
# Copyright: (c) 2025, Samaneh Yousefnezhad <s-yousefenzhad@um.ac.ir>
|
||||||
# GNU General Public License v3.0+
|
|
||||||
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
@ -10,11 +13,11 @@ DOCUMENTATION = r"""
|
||||||
---
|
---
|
||||||
module: nfs_exports_info
|
module: nfs_exports_info
|
||||||
|
|
||||||
short_description: Extract folders, IPs, and options from /etc/exports
|
short_description: Extract folders, IPs, and options from (/etc/exports)
|
||||||
|
|
||||||
description: >
|
description:
|
||||||
This module retrieves and processes the contents of the /etc/exports file from a remote server,
|
- This module retrieves and processes the contents of the /etc/exports file from a remote server,
|
||||||
mapping folders to their corresponding IP addresses and access options.
|
mapping folders to their corresponding IP addresses and access options.
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Samaneh Yousefnezhad (@yousefenzhad)
|
- Samaneh Yousefnezhad (@yousefenzhad)
|
||||||
|
@ -34,6 +37,7 @@ EXAMPLES = r"""
|
||||||
- name: Get IPs and options per shared folder
|
- name: Get IPs and options per shared folder
|
||||||
fava.infra.nfs_exports_info:
|
fava.infra.nfs_exports_info:
|
||||||
output_format: 'ips_per_share'
|
output_format: 'ips_per_share'
|
||||||
|
register: result
|
||||||
|
|
||||||
- name: Get shared folders and options per IP
|
- name: Get shared folders and options per IP
|
||||||
fava.infra.nfs_exports_info:
|
fava.infra.nfs_exports_info:
|
||||||
|
@ -42,7 +46,9 @@ EXAMPLES = r"""
|
||||||
|
|
||||||
RETURN = r"""
|
RETURN = r"""
|
||||||
exports_info:
|
exports_info:
|
||||||
description: A mapping of shared folders to IPs and their options, or the reverse.
|
description:
|
||||||
|
- A mapping of shared folders to IPs and their options, or the reverse.
|
||||||
|
- What it is depends on O(output_format).
|
||||||
type: dict
|
type: dict
|
||||||
returned: always
|
returned: always
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
|
# Copyright (c) 2025, Samaneh Yousefnezhad <s-yousefenzhad@um.ac.ir>
|
||||||
|
|
||||||
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue