You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/changelogs/fragments
Adam Miller 8c43697e3b yum - only instantiate YumBase once (#63713)
* yum - only instantiate YumBase once

Previously, this code was re-instantiating the `YumBase` object
many times which is unnecessary and slow. However, we must do it
twice in the `state: absent` case because the `yumSack` and
`rpmSack` data of the previously instantiated object becomes
invalid and is no longer useful post transaction when we verify
that the package removal did in fact take place. Also, this patch
removes the repetitive re-processing of enable/disable of repos in
various places.

Here's a display of the speed increase against a RHEL7 host:

```yaml
- hosts: rhel7
  remote_user: root
  tasks:
  - name: Install generic packages
    yum:
      state: present
      name:
        - iptraf-ng
        - screen
        - erlang
  - name: Remove generic packages
    yum:
      state: absent
      name:
        - iptraf-ng
        - screen
        - erlang
```

Before this patch:
```
real    0m52.728s
user    0m5.645s
sys     0m0.482s
```

After this patch:
```
real    0m17.139s
user    0m3.238s
sys     0m0.277s
```

Fixes #63588
Fixes #63551

Signed-off-by: Adam Miller <admiller@redhat.com>

* add changelog

Signed-off-by: Adam Miller <admiller@redhat.com>
5 years ago
..
27800-ec2_vpc_net-ipv6-support.yml AWS ec2_vpc_net: Enable ipv6 CIDR assignment (#60983) 5 years ago
47182-os_port_order_difference_should_not_trigger_changes.yml os_port allowed_address_pairs and extra_dhcp_opts list of dicts comparison fix (#56577) 5 years ago
51489-apt-not-honor-update-cache.yml apt: honor cache_update=false on auto-install deps (#56549) 5 years ago
55919-rabbitmq_publish-fix-for-recent-pika-versions.yml rabbitmq_publish fix for incorrectly stating message was not published to the queue (#61960) 5 years ago
56832-remove-aptitude-warning.yml Fixes #56832: Remove warning when falling back to apt-get if aptitude is missing. (#61782) 5 years ago
56966-win_format-allocation-unit-size.yml win_format - Add allocation_unit_size (#56966) 5 years ago
57185-fix_vmware_modules_py_pre2.79.yaml VMware: not ssl.SSLContext if validate_certs false (#57185) 5 years ago
57266-apt_repository-update-cache-retrying.yml apt_repository: implement update cache retrying (#57266) 5 years ago
57535-vmware_vcenter_statistics_corner-cases.yml VMware: Fix issue with order of changes in vmware_vcenter_statistics 5 years ago
57779-module_defaults_groups_catchup_gcp.yml Add missing gcp modules to gcp module defaults group (#57779) 5 years ago
58225-win_partition-maximum-partition-size.yml win_partition - Fix handling of maximum partition size (#58225) 5 years ago
58466-FIX_win_find-Bug-Get-FileStat_fails_on_large_files.yml Support large folder size comparisons for win_find (#58466) 5 years ago
58822-aws-lamda-tracing-config.yaml Added missing param to lambda module to pass it through to boto3 (#58822) 5 years ago
58973-luks_device_add-type-option.yml luks_device.py: allows user explicity define luks format version (#61812) 5 years ago
58973_luks_device-add-label-and-uuid-support.yml luks_device.py: Allow manipulate LUKS containers with label or UUID (#61603) 5 years ago
59438-hostname-use-hostnamectl.yml hostname: Use hostnamectl for Systemd strategy (#59974) 5 years ago
59464-playbook-dir-envvar.yml add ANSIBLE_PLAYBOOK_DIR envvar support (#63220) 5 years ago
59574-os_image_from_volume.yaml support creating an image from a volume (#59574) 5 years ago
59765-cron-cronvar-use-get-bin-path.yaml cron - Use the default crontab executable in cron and cronvar modules (#59765) 5 years ago
59877-fix-keyerror-in-redfish-getlogs.yaml Fix KeyError exceptions in GetLogs command (#59877) 5 years ago
59927-fix-redfish-power-reset-type-mapping.yaml Fix power command ResetType mapping logic (#59927) 5 years ago
60388-openssl_privatekey-format.yml openssl_privatekey: add support for format option (#60388) 5 years ago
60510-k8s-apply-check-mode.yml Ensure k8s apply works with check mode (#60572) 5 years ago
60527-apt_exponential_backoff_cache_update_retry.yml apt: use exponential backoff for apt update cache retries (#60527) 5 years ago
60569-plugins-netconf-ce.yml fix plugins/netconf/ce.py for netconf/capability/exchange (#60569) 5 years ago
60961-docker_compose-fix-deprecation-warning.yml fix erroneous failures in docker_compose due to deprecation warnings … (#61650) 5 years ago
61004-compare_policies-convert-to-string.yml Fix behaviour of module_utils/ec2 compare_policies when dealing with bare bools and ints. (#61115) 5 years ago
61119-os_server-add-tag-to-instance-nics.yml os_server - add "tag" to instance nics (#61119) 5 years ago
61227-win_iis_webapplication-apppool-change.yml correct behaviour of win_iis_webapplication when no applicationpool is specified (#61227) 5 years ago
61263-aws_codecommit-description.yml aws_codecommit: Fix integration tests and Add support for updating the description (#61263) 5 years ago
61284-ec2_asg-idempotency.yml aws_asg: Fix idempotency when using tags and metrics (#61284) 5 years ago
61338-tower-inventory-integer-inventory_id.yaml Use to_native for error messages, fix docs typo 5 years ago
61522-luks-device-add-option-to-define-keysize.yml add option to define keysize at luks partition creation (#61522) 5 years ago
61570-netcli-put-get.yaml Allow the use of _paramiko_conn even if the connection hasn't been started. (#61570) 5 years ago
61577-support-iops-in-purefa_volume.yml
61604-ansible-inventory-hide-args.yaml Properly hide limit and list-hosts args from ansible-inventory (#61618) 5 years ago
61624-fix-galaxy-url-building.yml Don't truncate the last character from galaxy urls. Fixes #61624 (#61775) 5 years ago
61655-fix-digital-ocean-droplet-create.yaml Fix creation of DigitalOcean droplets using digital_ocean_droplet module (#61655) 5 years ago
61658-openssh_keypair-public-key-permissions.yml openssh_keypair: make sure public key has same permissions as private key (#61658) 5 years ago
61693-acme-buypass-acme-v1.yml ACME modules: make compatible to Buypass ACME v1 CA, and fix bug in ACME v1 account update (#61693) 5 years ago
61735-wait-for-s3-bucket-to-exist-before-modifying.yaml aws_s3 - wait for the bucket before setting ACLs (#61735) 5 years ago
61736-eos-normalize-interface.yaml Standardize eos resource modules (#61736) 5 years ago
61738-ecs-certificate-invalid-chain.yaml Fixes to ecs_certificate cert chain for #61738 (#61858) 5 years ago
61740-docker_container-port-range-parsing.yml docker_container: improve port range parsing error behavior (#61740) 5 years ago
61805-azure-facts-info.yml Azure _info modules: fix returned ansible_facts when called as _info (#61805) 5 years ago
61925-fix_purefa_fact_info_api_check.yml purefa_info: Fix failure due to API version check (#61925) 5 years ago
61933-ec2_transit_gateway-honor-auto_attach-setting.yaml fix 61907 - auto_attach yes option not honored in ec2_transit_gateway (#61993) 5 years ago
61961-pacman_remove_recurse_option.yaml pacman: remove 'recurse' deprecated option (#61961) 5 years ago
61978-get-url-no-checksum.yml Don't treat no checksum as a checksum match (#62146) 5 years ago
62014-iam_role_session_instanceprofile.yml iam_role : support managing max session duration and deleting the instance profile it creates (#62014) 5 years ago
62068-add-pure-cbs-support.yml Add checks for Cloud Block Store (#62068) 5 years ago
62083-vmware-internal_results.yml VMware: Change return key `results` from VMware modules (#62161) 5 years ago
62096-test-coverage-all.yml Fix ansible-test coverage --all (#62115) 5 years ago
62188-VMware-Guest-Support-latest-version-while-upgrading-VM-hardware.yml Support latest version while upgrading VM hardware. (#62188) 5 years ago
62218-fix-to-entrust-api.yml Always specify header of connection keep-alive regardless of python v… (#62218) 5 years ago
62237-keep-unsafe-context.yml Ensure we don't erase unsafe context in TaskExecutor.run on bytes (#62287) 5 years ago
62290-fix-cloudformation_info-KeyError.yaml cloudformation_info - fix KeyError (#62290) 5 years ago
62329-nsupdate-lookup-internal-zones.yaml nsupdate: Use authoritative server for zone lookup (#62329) 5 years ago
62403-ce_bgp_neighbor_af_fix_parameter_name.yml ce_bgp_neighbor_af: fix a typo in module's parameter (#62403) 5 years ago
62542-constructed-options-foreman-inventory-plugin.yaml Add Constructed to Foreman inventory plugin (#62542) 5 years ago
62582-allow_diff_before_after_to_be_None.yml allow before/after diff to be NoneType (#62582) 5 years ago
62587-module_utils-network-cloudengine.yml module_utils-network-cloudengine: fix get_nc_next. (#62587) 5 years ago
62598-AnsibleDumper-representer.yaml Add a representer for AnsibleUnsafeBytes (#62598) 5 years ago
62616-vmware_cluster_ha-fix-documentation.yml VMware: Remove mentions of enable_vsan from vmware_cluster_ha example (#62616) 5 years ago
62621-docker_login-fix-60381.yaml docker_login: fix Python 3 problem in #60381 (#62621) 5 years ago
62648-mysql_replication_add_master_use_gtid_param.yml mysql_replication: add master_use_gtid parameter (#62648) 5 years ago
62766-package_facts-pkg-manager-fix-vital-value.yml package_facts: check 'vital' and 'automated' values ('pkg' manager) (#62766) 5 years ago
62790-openssl_certificate_fix_assert.yml Fix _validate_csr_subject and _validate_csr_signature (#62790) 5 years ago
62809-dnf-wildcard-absent-failure.yml dnf - properly handle idempotent removal of wildcard globs (#63034) 5 years ago
62870-collection-install-default-path.yml Default collection install path to first path in COLLECTIONS_PATHS (#62870) 5 years ago
62872-ce_config_too_many_quit_close_connection.yml ce_config/bug/jingdong: a bug from jingdong. (#62872) 5 years ago
62916-add_properties_option_to_vmware_host_facts.yml VMware: add properties option to vmware_host_facts module (#62916) 5 years ago
62928-docker_container-ip-address-idempotency.yml docker_container: fix idempotency for network IP addresses (#62928) 5 years ago
62971-docker_container-image-finding.yml docker_container: improve image finding / change detection (#62971) 5 years ago
62991-openssl_dhparam-cryptography-backend.yml openssl_dhparam: add cryptography backend (#62991) 5 years ago
62999-postgresql_lang_add_owner_parameter.yml postgresql_lang: add owner parameter (#62999) 5 years ago
63036-mysql_replication_add_return_value.yml mysql_replication: add return value, remove extra argument from function (#63036) 5 years ago
63130-mysql_replication_add_master_delay_parameter.yml mysql_replication: add master_delay parameter (#63130) 5 years ago
63166-add-extra-args-executalbe-podman-connection.yaml Add extra args and executable name to podman connection plugin (#63166) 5 years ago
63189-mysql_info-global-status.yml doc: mysql_info: add changelog and version_added for global_status (#63328) 5 years ago
63194-lineinfile_insertafter_duplicate.yaml lineinfile - fix bug with insertbefore/insertafter and firstmatch (#63194) 5 years ago
63229-mysql_replication_add_connection_name_parameter.yml mysql_replication: add connection_name param for MariaDB multi source replication support (#63229) 5 years ago
63271-mysql_replication_add_channel_parameter.yml mysql_replication: add channel parameter (#63271) 5 years ago
63280-fix_acl_spaces_in_path.yml acl: fix module failure if there're spaces in a path (#63280) 5 years ago
63321-mysql_replication_add_resetmaster_to_mode.yml mysql_replication: add support of resetmaster choice to mode parameter (#63321) 5 years ago
63345-docker_image-deprecation-warnings.yml docker_image: fix option parameter so that warnings are issued (#63345) 5 years ago
63408-nsupdate-dont-fix-none-txt-value.yaml nsupdate: Don't try fixing non-existing TXT values (#63408) 5 years ago
63418-docker_node_info-errors.yml docker_node_info: improve error handling (#63418) 5 years ago
63420-docker_container-trust_image_content.yml docker_container: deprecate trust_image_content (#63420) 5 years ago
63432-openssl_csr-version.yml openssl_csr: deprecate version option (#63432) 5 years ago
63513-ce_action_wait_prompt_trigger_time_out.yaml action/ce.py:clear configuration candidate when return to user-view. (#63513) 5 years ago
63551-yum-single-YumBase-instantiation.yaml yum - only instantiate YumBase once (#63713) 5 years ago
63555-postgresql_privs_typy_obj_types.yaml postgresql_privs: add support a type parameter option for types (#63555) 5 years ago
63565-postgresql_user_allow_user_name_with_dots.yml doc: postgresql_user: Add changelog fragment for 63565 (#63666) 5 years ago
63621-gitlab_user-fix-sshkey-and-user.yml gitlab_user: Fix ssh key add and group membership add when there's other changes (#63621) 5 years ago
63628-ansible-galaxy-fix-version.yml Added changelog fragment 5 years ago
63752-cloudformation-return-changeset-id.yaml add change_set_id to cloudformation output (#63752) 5 years ago
adhoc_default_collection.yml fix default collection resolution in adhoc (#63298) 5 years ago
allow_ansible_ns.yml allow external collections under the ansible NS (#61908) 5 years ago
ansible-connection_persist_issue.yaml Fix ansible-connection persist after playbook run complete issue (#61591) 5 years ago
ansible-doc-removed-traceback.yml Fix ansible-doc traceback and sanity test. (#62040) 5 years ago
ansible-galaxy-handle-import-task-url-changes.yml Galaxy publish fix (#63580) 5 years ago
ansible-galaxy-progress.yaml ansible-galaxy - add config to control the display wheel (#61902) 5 years ago
ansible-galaxy-role-server.yaml ansible-galaxy fix --server option for roles (#61820) 5 years ago
ansible-galaxy-support-for-automation-hub.yml Add support for automation-hub authentication to ansible-galaxy (#63031) 5 years ago
ansible-test-ansible-doc.yml Fix ansible-doc traceback and sanity test. (#62040) 5 years ago
ansible-test-cloud-secrets.yml Mark ansible-test cloud credentials as sensitive. 5 years ago
ansible-test-collections-ansible-adhoc.yml fix default collection resolution in adhoc (#63298) 5 years ago
ansible-test-collections-coverage-noise.yml Properly exclude tests/output/ from code coverage. 5 years ago
ansible-test-collections-requirements.yml Fix ansible-test collections requirements installation. (#62181) 5 years ago
ansible-test-default-test-container-1.9.2.yml Add missing changelog fragments. (#62471) 5 years ago
ansible-test-default-test-container-1.9.3.yml Add missing changelog fragments. (#62471) 5 years ago
ansible-test-default-test-container-1.10.1.yml Update default-test-container to 1.10.1. 5 years ago
ansible-test-delegation-tmp-dir.yml Exclude tmp dir from ansible-test results copy. 5 years ago
ansible-test-doc-links.yml Fix display of sanity test doc links. 5 years ago
ansible-test-env-alteration.yml Fix ansible-test env var mixing running commands. 5 years ago
ansible-test-execv-wrapper-shebang.yml Fix issues with ansible-test --venv option. (#62033) 5 years ago
ansible-test-fix-import-sanity-test.yml Changelog entry for ansible-test sanity fixes. 5 years ago
ansible-test-fix-python-path.yml Fix ansible-test PYTHONPATH handling. 5 years ago
ansible-test-hcloud-constraint.yml Fix hcloud requirements. 5 years ago
ansible-test-ignore-tests-output.yml Fix ansible-test to ignore `tests/output/`. (#62084) 5 years ago
ansible-test-integration-temp-dir.yml Fix ansible-test integration temp dir location. 5 years ago
ansible-test-pathspec-constraint.yml Add constraint for pathspec. 5 years ago
ansible-test-pytest-plugin-loading.yml Add missing changelog entry for ansible-test fix. 5 years ago
ansible-test-redact.yml Redact sensitive values by default in ansible-test 5 years ago
ansible-test-sanity-constraints.yml Fix ansible-test sanity requirements install. 5 years ago
ansible-test-sanity-requirements.yml Fix issues with ansible-test --venv option. (#62033) 5 years ago
ansible-test-ssh-keygen-fix.yml Work around ssh-keygen issue in ansible-test. (#63211) 5 years ago
ansible-test-submodules.yml
ansible-test-test-source-message.yml Add missing var for format string in ansible-test. 5 years ago
ansible-test-vcenter-plugin.yml Fix ansible-test vcenter test filtering. 5 years ago
ansible-test-venv-activation.yml Fix issues with ansible-test --venv option. (#62033) 5 years ago
ansible-test-venv-pythonpath.yml Fix issues with ansible-test --venv option. (#62033) 5 years ago
ansible-test-virtualenv-python-search.yml Fix ansible-test virtualenv real python search. 5 years ago
ansible-test-virtualenv-venv.yml Work around virtualenv/venv issue in ansible-test. (#62111) 5 years ago
ansible_basic_no_log_empty_string.yaml Fix issue when setting an empty pass to no_log param (#62804) 5 years ago
ansile-galaxy-preserve-api-append.yml Ensure we preserve the /api appended URL (#63472) 5 years ago
atomic_image_absent.yml atomic_image: Fix absent state (#61827) 5 years ago
azure-fact-fix.yaml Azure fix _info/_facts return values for some modules (#61584) 5 years ago
collection-prefix-basedir.yaml Add fix for specifying current dir in collections_paths (#62478) 5 years ago
collection_jinja_cache_fix.yml fix collection jinja2 cache issue (#62543) 5 years ago
collection_loader_import_fixes.yml Fix plugin names for collection plugins. (#60317) 5 years ago
config_encoding_resilience.yml config encode errors should not be fatal (#63311) 5 years ago
cron-only-get-bin-path-once.yaml cron - Only run get_bin_path() once (#62554) 5 years ago
cronvar-correct-binary-name.yaml cronvar - use correct binary name (#63279) 5 years ago
debug_loop_changed.yaml clean "changed" only after it has been processed (#59958) 5 years ago
deprecate-hash-behaviour.yml Deprecate hash_behaviour (#63300) 5 years ago
display-warning-remove-erroneous-space.yaml Remove leading space in warning messages (#62002) 5 years ago
dont-template-cli-passwords.yml Wrap CLI Passwords with AnsibleUnsafeText, ensure unsafe context is not lost during encode/decode (#63351) 5 years ago
extra-vars.yml core: Handle empty extra vars in cli (#61831) 5 years ago
find-contains-docs.yaml find - clarify description of 'contains' (#62445) 5 years ago
firewalld-version-0_7_0.yml adapt to firewalld 0.7.0 for RHEL 8.1 Beta, Fedora 31+ (#63357) 5 years ago
fix-ansible-galaxy-server.yml AH servers include automation-hub as part of the server configuration. (#63700) 5 years ago
lineinfile-backrefs-match-object-type.yaml lineinfile - properly insert line when line exists and backrefs are enabled (#63763) 5 years ago
lineinfile-use-correct-index-value.yaml lineinfile - use correct index value when inserting at the end (#63696) 5 years ago
lookup_rabbitmq-is_closing-bug.yml lookup_rabbitmq pika > 1.0.0 is_closing bug fix (#61959) 5 years ago
mqtt-ssl-protocols.yml Fix SSL protocol references in mqtt module. 5 years ago
netbox-add-cache.yaml Add inventory cache to the netbox plugin (#57644) 5 years ago
no-log-sub-options-invalid-parameter.yaml Properly mask no_log values is sub parameters during failure (#63405) 5 years ago
nxos_bfd_global-add-missing-import.yaml nxos_bfd_global - add missing import of re (#62226) 5 years ago
openbsd-disabled-account-no-warning-for-passwd.yaml Allow 13 asterisk characters in password field without warning (#54893) 5 years ago
os_server_volume.yml Attach an attached/detached volume from OpenStack VM’s should return similar information (#21558) 5 years ago
package-facts-use-module-warnings.yaml package_facts - use AnsibleModule.warn() for warnings 5 years ago
psexec-kerb-and-interactive.yaml psexec - Fix kerb and interactive support (#62556) 5 years ago
pwsh-minimum.yaml Add proper error when trying to run on older PS versions (#62634) 5 years ago
python38-macos.yaml Explicitly use multiprocessing fork start method (#63581) 5 years ago
split-host-pattern-empty-strings.yaml Account for empty strings when splitting the host pattern (#62442) 5 years ago
syslogger-disable-check-mode.yaml syslogger - disable check mode (#63646) 5 years ago
truthiness-tests.yaml Add new truthy and falsy jinja2 tests (#62602) 5 years ago
user-aix-shadow-unbound-local.yaml user - fix shadow file parsing on AIX (#62547) 5 years ago
user-docs-group-fix.yaml User - correct group removal description in docs (#61936) 5 years ago
v2.10.0-initial-commit.yaml [WIP] Cleanups and version bumping for 2.10 (#61572) 5 years ago
vmware-module_fragments-group.yml VMware: Add module defaults for VMware modules (#63197) 5 years ago
vmware-only-add-configured-interfaces.yml vmware: Only add configured network interfaces to facts (#28552) 5 years ago
vmware_guest.yaml VMware: Add a parameter wait_for_ip_address_timeout in vmware_guest (#63557) 5 years ago
vmware_guest_custom_attributes.yml VMware: name is not required parameter for vmware_guest_custom_attributes 5 years ago
win_become-shared-token.yaml win_become - don't dispose logon token until end (#61905) 5 years ago
win_exec-error.yaml win_exec_wrapper - Be more defensive when trying to get output errors (#62376) 5 years ago
win_find-fix-ignore-of-deduped-files.yml win_find - Fix deduped files mistaken for directories (#58680) 5 years ago
win_format-Idem-not-working-if-file-exist-but-same-fs.yml win_format - Idem not working if file exist but same fs (#59819) 5 years ago
xml-deprecated-functions.yml Fix use of deprecated function in xml module. 5 years ago