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/tests/integration/targets
Peter Oliver dd9e999c9f
pkgutil: add update all, check-mode, squashing and examples (#799)
* pkgutil: add update all, check-mode, squashing and examples

Taken from https://github.com/ansible/ansible/pull/51651 by dagwieers, which was taken from https://github.com/ansible/ansible/pull/27866 by scathatheworm.  Let’s have one last attempt to get this merged.

> ##### SUMMARY
>
> Original PR #27866 from scathatheworm
>
> When working with Solaris pkgutil CSW packages, I came across this module being very basic in functionality, in particular, that I could not use it to update all CSW packages.
>
> When going into details into the code I also found it did not incorporate a possibility of doing dry-run from the underlying utility, or supported to specify multiple packages for operations.
>
> This module probably sees very little use, but it seemed like nice functionality to add and make it behave a little more like other package modules.
> ##### ISSUE TYPE
>
>     * Feature Pull Request
>
>
> ##### COMPONENT NAME
>
> pkgutil module
> ##### ANSIBLE VERSION
>
> ```
> ansible 2.3.1.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = Default w/o overrides
>   python version = 2.7.5 (default, Aug  2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
> ```
>
> ##### ADDITIONAL INFORMATION
>
>     * Added ability to upgrade all packages:
>
>
> ```yaml
> - pkgutil:
>     name: '*'
>     state: latest
> ```
>
>     * Added ability to modify state of a list of packages:
>
>
> ```yaml
> - pkgutil:
>     name:
>     - CSWtop
>     - CSWwget
>     - CSWlsof
>     state: present
> ```
>
>     * Added ability to have underlying tool perform a dry-run when using check mode, pkgutil -n
>
>     * Added ability to configure force option to force packages to state determined by repository (downgrade for example)
>
>
> ```yaml
> - pkgutil:
>     name: CSWtop
>     state: latest
>     force: yes
> ```
>
>     * Added more examples and documentation to show the new functionality

* Add changelog fragment.

* Observe changelog style guide

https://docs.ansible.com/ansible/devel/community/development_process.html#changelogs

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

* Since module split, version_added no-longer refers to core Ansbile

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

* Tweak documentation

* Apply the new `elements` feature for specifying list types

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

* Set version_added

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

* Document `pkg` alias for `name`

* Be explicit about the purpose of states `installed` and `removed`.

* Force the user to specify their desired state.

* Review documentation for pkgutil module.

* Fully qualify svr4pkg module name

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

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-09-30 06:19:36 +02:00
..
aix_devices Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
aix_filesystem Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
alternatives Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
apache2_module Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
archive Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
callback_diy Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
callback_log_plays Shippable: community/general (#12) 2020-03-17 08:59:17 +00:00
cloud_init_data_facts Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
connection Test of using FQCN for some builtin plugins (#660) 2020-07-16 12:24:04 +03:00
connection_chroot Fix even more tests (#69) 2020-03-30 08:24:27 +01:00
connection_docker Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_jail Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_lxc Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_lxd Fix FQCRs. (#64) 2020-03-29 13:02:28 +02:00
connection_posix Initial commit 2020-03-09 09:11:07 +00:00
consul Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
cronvar Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
deploy_helper Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_config Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_container docker_container: fix idempotency problem with empty published_ports list (#979) 2020-09-28 20:40:57 +02:00
docker_container_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_host_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_image Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_image_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_login Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_network Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_network_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_node Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_node_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_prune Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_secret Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_stack Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_stack_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_stack_task_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_swarm Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_swarm_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_swarm_service Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_swarm_service_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_volume Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
docker_volume_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
dpkg_divert Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
etcd3 Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filesystem Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_jc Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_json_query Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_random_mac Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
filter_time Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
flatpak Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
flatpak_remote Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gem Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
git_config Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
github_issue Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_deploy_key Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_group_members Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_group_variable Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_hook Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_project Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_project_variable Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_runner Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
gitlab_user Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hg Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
homebrew Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_ecs_instance Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_evs_disk Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_network_vpc Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_smn_topic Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_eip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_peering_connect Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_port Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_private_ip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_route Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_security_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_security_group_rule Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
hwc_vpc_subnet Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
influxdb_user Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
ini_file Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
inventory_docker_machine Initial commit 2020-03-09 09:11:07 +00:00
inventory_docker_swarm inventory_docker_swarm test - Remove exit code from trap (#391) 2020-05-21 21:48:41 +02:00
inventory_kubevirt sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
ipify_facts Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iptables_state Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
ipwcli_dns Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iso_create Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
iso_extract Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
java_cert Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
jboss Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
launchd Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
ldap_search Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
listen_ports_facts Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
locale_gen Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_cartesian Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_etcd3 Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_flattened Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_hashi_vault Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lookup_lmdb_kv Fix lmdb lookup tests (#842) 2020-08-29 10:47:28 +02:00
lookup_passwordstore Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
lvg Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
mail Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
mas Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_dns_reload Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_memstore_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_server_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone_domain Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
memset_zone_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
mqtt Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_a_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_aaaa_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_cname_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_dns_view Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_host_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_mx_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_naptr_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_network Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_network_view Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_ptr_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_srv_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_txt_record Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
nios_zone Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
npm Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
odbc Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
one_host Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
osx_defaults Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
pids Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
pkgutil pkgutil: add update all, check-mode, squashing and examples (#799) 2020-09-30 06:19:36 +02:00
postgresql_copy Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_db Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_ext Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_idx Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_lang Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_membership Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_owner Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_pg_hba Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_ping Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_privs postgresql_privs: fix the module mistakes a procedure for a function (#996) 2020-09-29 21:27:30 +03:00
postgresql_publication Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_query Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_schema Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_sequence Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_set Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_slot Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_subscription Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_table Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_tablespace Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_user Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
postgresql_user_obj_stat_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
prepare_nios_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
prepare_nuage_tests/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
prepare_tests/tasks Initial commit 2020-03-09 09:11:07 +00:00
python_requirements_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
read_csv Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
redis_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_compute Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_database_backup Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_image_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_ip Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_ip_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_lb Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_organization_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_security_group_rule Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_server_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_snapshot_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_sshkey Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_user_data Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_volume Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
scaleway_volume_info Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
script_inventory_foreman Fix more tests (#66) 2020-03-30 11:06:48 +02:00
sefcontext Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
sensu_client Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
sensu_handler Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_cron Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_docker Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_docker_registry Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_epel/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_etcd3 Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_flatpak_remote Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_influxdb/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_mosquitto Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_openldap Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_opennebula/vars Initial commit 2020-03-09 09:11:07 +00:00
setup_openssl Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_pkg_mgr/tasks Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_postgresql_db Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_postgresql_replication Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_redis_replication Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_remote_constraints Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_remote_tmp_dir Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_tls Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
setup_wildfly_server Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
shutdown Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
supervisorctl Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
synchronize-buildah Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
timezone Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
ufw Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
wakeonlan Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
xattr Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
xfs_quota Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
xml Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
yarn Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
zypper Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
zypper_repository Add headers to ci tests (#954) 2020-09-25 08:01:17 +02:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00