1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/system
PKehnel c273498a03
Module listen ports facts extend output (#4953)
* Initial Rework of netstat and ss to include additional information.
State, foreign address, process.

* Fixed sanity tests. Python 2 compatible code. pylint errors resolved.

* Sanity tests. ss_parse fix minor error I created before.

* Rename variable for clarity

* Python2 rsplit takes no keyword argument. -> remove keyword argument

* Generic improvments for split_pid_name. Added changelog

* Sanity Test (no type hints for python2.7)

* add include_non_listening param. Add param to test. Add documentation. Only return state and foreign_address when include_non_listening

* Update changelogs/fragments/4953-listen-ports-facts-extend-output.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add info to changelog fragment. Clarify documentation.

* The case where we have multiple entries in pids for udp eg: users:(("rpcbind",pid=733,fd=5),("systemd",pid=1,fd=30)) is not in the tests. So roll back to previous approach where this is covered. Fix wrong if condition for include_non_listening.

* Rewrite documentation and formatting.

* Last small documentation adjustments.

* Update parameters to match description.

* added test cases to check if include_non_listening is set to no by default. And test if ports and foreign_address exists if set to yes

* undo rename from address to local_address -> breaking change

* Replace choice with bool, as it is the correct fit here

* nestat distinguishes between tcp6 and tcp output should always be tcp

* Minor adjustments in the docs (no -> false, is set to yes -> true)

Co-authored-by: Paul-Kehnel <paul.kehnel@ocean.ibm.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-07-31 22:12:38 +02:00
..
aix_devices.py
aix_filesystem.py aix_filesystems - invoke run_command passing list (#3833) 2021-12-09 21:19:44 +01:00
aix_inittab.py
aix_lvg.py aix_lvg - invoke run_command passing list (#3834) 2021-12-09 21:20:12 +01:00
aix_lvol.py
alternatives.py Fix alternatives module (#4836) 2022-06-14 16:02:31 +02:00
awall.py
beadm.py
capabilities.py
cronvar.py
crypttab.py
dconf.py dconf: Skip processes that disappeared while we inspected them (#4153) 2022-02-10 07:15:37 +01:00
dpkg_divert.py Prepare for distutils.version being removed in Python 3.12 (#3936) 2021-12-24 17:34:48 +00:00
facter.py
filesystem.py Add RHEL 9.0, FreeBSD 13.1, Ubuntu 22.04 and Fedora 36 to CI, fix bug in filesystem module (#4700) 2022-05-22 17:20:30 +02:00
gconftool2.py gconftool2: deprecate state get (#4778) 2022-07-29 11:38:37 +02:00
gconftool2_info.py gconftool2_info: new module (#4743) 2022-06-04 09:13:53 +02:00
homectl.py Misc. typo fixes (#4940) 2022-07-08 23:11:57 +02:00
interfaces_file.py interfaces_file - fixed dup options bug (#3862) 2021-12-07 21:54:54 +01:00
iptables_state.py
java_cert.py java_cert - invoke run_command passing list (#3835) 2021-12-03 07:27:03 +01:00
java_keystore.py [5.0.0] Remove Ansible 2.9 / ansible-base 2.10 compatibility code (#4548) 2022-04-26 11:51:01 +02:00
kernel_blacklist.py
keyring.py Add keyring and keyring_info modules (#4764) 2022-06-20 19:15:08 +02:00
keyring_info.py Fix keyring_info when using keyring library (#4964) 2022-07-24 12:08:12 +02:00
launchd.py
lbu.py
listen_ports_facts.py Module listen ports facts extend output (#4953) 2022-07-31 22:12:38 +02:00
locale_gen.py
lvg.py
lvol.py
make.py
mksysb.py Multiple modules using ModuleHelper (#4674) 2022-05-23 07:19:24 +02:00
modprobe.py
nosh.py Fix various module docs. (#4887) 2022-06-22 22:43:48 +02:00
ohai.py
open_iscsi.py Fix sanity issues. (#4346) 2022-03-14 20:56:27 +01:00
openwrt_init.py
osx_defaults.py
pam_limits.py
pamd.py
parted.py
pids.py Prepare for distutils.version being removed in Python 3.12 (#3936) 2021-12-24 17:34:48 +00:00
puppet.py Add puppet confdir option (#4740) 2022-06-06 10:32:20 +02:00
python_requirements_info.py python_requirements_info: don't overwrite results in 'mismatched' dict key (#4078) 2022-01-29 15:30:07 +01:00
runit.py
sap_task_list_execute.py
sefcontext.py
selinux_permissive.py Fix sanity issues. (#4346) 2022-03-14 20:56:27 +01:00
selogin.py
seport.py seport: minor refactor (#4471) 2022-04-10 14:34:15 +02:00
shutdown.py
solaris_zone.py
ssh_config.py
sudoers.py Sudoers validate (#4794) 2022-06-21 12:41:24 +02:00
svc.py
syspatch.py
sysrc.py
sysupgrade.py
timezone.py Misc. typo fixes (#4940) 2022-07-08 23:11:57 +02:00
ufw.py
vdo.py vdo: Remove unused variable (#4163) 2022-02-07 20:12:44 +01:00
xfconf.py xfconf and xfconf_info: use do_raise (#4975) 2022-07-24 12:09:24 +02:00
xfconf_info.py xfconf and xfconf_info: use do_raise (#4975) 2022-07-24 12:09:24 +02:00
xfs_quota.py