##### SUMMARY
When using Ansible devel (`pip install git+https://github.com/ansible/ansible.git@devel`) to install software using `package` (likely passed to `pacman` module) and looping over a list of packages, an error is display

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
package
pacman

##### ANSIBLE VERSION
```
ansible 2.10.0.dev0
```

##### CONFIGURATION
```paste below
(empty)
```

##### OS / ENVIRONMENT
controler: ubuntu (on travis)
managed node: Archlinux in a container

##### STEPS TO REPRODUCE
Have a look at [the build](https://travis-ci.org/robertdebock/ansible-role-at/jobs/592714211#L834) and [the code](- name: install bootstrap_facts_packages)

##### EXPECTED RESULTS
No errors.

##### ACTUAL RESULTS
```paste below
835  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IndexError: list index out of range
836    failed: [at-archlinux] (item=python3) => changed=false 
837      ansible_loop_var: item
838      item: python3
839      module_stderr: |-
840        Traceback (most recent call last):
841          File "/root/.ansible/tmp/ansible-tmp-1570043024.2295542-61858662337132/AnsiballZ_pacman.py", line 102, in <module>
842            _ansiballz_main()
843          File "/root/.ansible/tmp/ansible-tmp-1570043024.2295542-61858662337132/AnsiballZ_pacman.py", line 94, in _ansiballz_main
844            invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
845          File "/root/.ansible/tmp/ansible-tmp-1570043024.2295542-61858662337132/AnsiballZ_pacman.py", line 40, in invoke_module
846            runpy.run_module(mod_name='ansible.modules.packaging.os.pacman', init_globals=None, run_name='__main__', alter_sys=False)
847          File "/usr/lib/python3.7/runpy.py", line 208, in run_module
848            return _run_code(code, {}, init_globals, run_name, mod_spec)
849          File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
850            exec(code, run_globals)
851          File "/tmp/ansible_pacman_payload_0g8c68rr/ansible_pacman_payload.zip/ansible/modules/packaging/os/pacman.py", line 500, in <module>
852          File "/tmp/ansible_pacman_payload_0g8c68rr/ansible_pacman_payload.zip/ansible/modules/packaging/os/pacman.py", line 492, in main
853          File "/tmp/ansible_pacman_payload_0g8c68rr/ansible_pacman_payload.zip/ansible/modules/packaging/os/pacman.py", line 341, in install_packages
854        IndexError: list index out of range
855      module_stdout: ''
856      msg: |-
857        MODULE FAILURE
858        See stdout/stderr for the exact error
859      rc: 1
```

type: list
        elements: str
    state:
        description:
            - Desired state of the package.
        default: present
        choices: [ absent, latest, present ]
    force:
        description:
            - When removing package, force remove package, without any checks.
              Same as `extra_args="--nodeps --nodeps"`.
              When update_cache, force redownload repo databases.
              Same as `update_cache_extra_args="--refresh --refresh"`.
        default: no
        type: bool
        version_added: "2.0"
    extra_args:
        description:
            - Additional option to pass to pacman when enforcing C(state).
        default:
        version_added: "2.8"
    update_cache:
        description:
            - Whether or not to refresh the master package lists.
            - This can be run as part of a package installation or as a separate step.
        default: no
        type: bool
        aliases: [ update-cache ]
    update_cache_extra_args:
        description: