mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #6352/0eb33c28 backport][stable-6] Add support env variables for nmap inventory plugin (#6394)
Add support env variables for nmap inventory plugin (#6352)
* Add support env variables for nmap inventory plugin
* Add changelogs/fragments file
* Rename support-env-variables-to-nmap-dynamic-inventoiry to 6351-support-env-variables-to-nmap-dynamic-inventoiry
* Add extension for changelog file
* Fix https://github.com/ansible-collections/community.general/pull/6352#discussion_r1167973326
Co-authored-by: Felix Fontein <felix@fontein.de>
* Fix https://github.com/ansible-collections/community.general/pull/6352#discussion_r1167973295
Co-authored-by: Felix Fontein <felix@fontein.de>
* Fix https://github.com/ansible-collections/community.general/pull/6352#discussion_r1167973265
Co-authored-by: Felix Fontein <felix@fontein.de>
* Fix https://github.com/ansible-collections/community.general/pull/6352#discussion_r1167973193
* Fix linter
* Fix https://github.com/ansible-collections/community.general/pull/6352#discussion_r1168014445
* Fix changelog fragment.
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 0eb33c2839
)
Co-authored-by: efrikin <sadeless@gmail.com>
This commit is contained in:
parent
57f262504d
commit
46a83df85e
2 changed files with 11 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- nmap inventory plugin - added environment variables for configure ``address`` and ``exclude`` (https://github.com/ansible-collections/community.general/issues/6351).
|
|
@ -30,10 +30,18 @@ DOCUMENTATION = '''
|
||||||
address:
|
address:
|
||||||
description: Network IP or range of IPs to scan, you can use a simple range (10.2.2.15-25) or CIDR notation.
|
description: Network IP or range of IPs to scan, you can use a simple range (10.2.2.15-25) or CIDR notation.
|
||||||
required: true
|
required: true
|
||||||
|
env:
|
||||||
|
- name: ANSIBLE_NMAP_ADDRESS
|
||||||
|
version_added: 6.6.0
|
||||||
exclude:
|
exclude:
|
||||||
description: list of addresses to exclude
|
description:
|
||||||
|
- List of addresses to exclude.
|
||||||
|
- For example C(10.2.2.15-25) or C(10.2.2.15,10.2.2.16).
|
||||||
type: list
|
type: list
|
||||||
elements: string
|
elements: string
|
||||||
|
env:
|
||||||
|
- name: ANSIBLE_NMAP_EXCLUDE
|
||||||
|
version_added: 6.6.0
|
||||||
port:
|
port:
|
||||||
description:
|
description:
|
||||||
- Only scan specific port or port range (C(-p)).
|
- Only scan specific port or port range (C(-p)).
|
||||||
|
|
Loading…
Reference in a new issue