##### SUMMARY
Happened here: https://github.com/ansible-collections/community.general/pull/341

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
ansible-test

##### ANSIBLE VERSION
```paste below
devel
```

- When used with a `loop:` each package will be processed individually, it is much more efficient to pass the list directly to the `name` option.
'''
EXAMPLES = '''
- name: Install apache httpd  (state=present is optional)
  apt:
    name: apache2
    state: present
- name: Update repositories cache and install "foo" package
  apt:
    name: foo
    update_cache: yes
- name: Remove "foo" package
  apt:
    name: foo
    state: absent
- name: Install the package "foo"
  apt:
    name: foo
- name: Install a list of packages
  apt:
    pkg:
    - foo
    - foo-tools
- name: Install the version '1.00' of package "foo"
  apt:
    name: foo=1.00
- name: Update the repository cache and update package "nginx" to latest version using default release squeeze-backport
  apt:
    name: nginx
    state: latest