title: no package matching is available in ansible version 2.7.10
body: <p>Can't install the packages in the virtual machine with ansible. Error: No package matching is available</p>
  
  <pre><code>---
  - hosts: webservers
    remote_user: root
    #tasks:
    # - name: test connection
    #   ping:
    #   remote_user: 192.168.33.10
    #sudo: yes
    tasks:
      #- name: make sure apache is running
      #  service: name=httpd state=running
      - name: General | Instalacion de paquetes requeridos.
  
        action: apt pkg={{ item }} state=present
        with_items:
           -unzip
           -mysql-server
           -mysql-client
           -apache2
           -php-mysql
           -php-apc
           -php-xmlrpc
           -php-soap
           -php-gd
           -php
           -python-mysqldb
  
  ##
  # Configuracion de Apache2
  ##
  
      - name: Apache2 | Habilitar módulos
        action: command a2enmod rewrite vhost_alias
  
  ##
  # Reinicio de servicios
  ##
  
      - name: Restart Apache
        action: service name=apache2 state=restarted
  </code></pre>
  
  <p>Is there another option to do it, or how do I know what packages use', I tried installing a few packages at one, but failed too.</p>
  
  <p>The complete error is:</p>
  
  <p>PLAY [webservers] **************************************************************</p>
  
  <p>TASK [Gathering Facts] *********************************************************
  ok: [192.168.33.10]</p>
  
  <p>TASK [General | Instalacion de paquetes requeridos.] ***************************
  [DEPRECATION WARNING]: Invoking "apt" only once while using a loop via 
  squash_actions is deprecated. Instead of using a loop to supply multiple items 
  and specifying <code>pkg: "{{ item }}"</code>, please use <code>pkg: '-unzip -mysql-server 
  -mysql-client -apache2 -php-mysql -php-apc -php-xmlrpc -php-soap -php-gd -php 
  -python-mysqldb'</code> and remove the loop. This feature will be removed in version 
  2.11. Deprecation warnings can be disabled by setting 
  deprecation_warnings=False in ansible.cfg.
  failed: [192.168.33.10] (item=[u'-unzip -mysql-server -mysql-client -apache2 -php-mysql -php-apc -php-xmlrpc -php-soap -php-gd -php -python-mysqldb']) => {"changed": false, "item": ["-unzip -mysql-server -mysql-client -apache2 -php-mysql -php-apc -php-xmlrpc -php-soap -php-gd -php -python-mysqldb"], "msg": "No package matching '-unzip -mysql-server -mysql-client -apache2 -php-mysql -php-apc -php-xmlrpc -php-soap -php-gd -php -python-mysqldb' is available"}
      to retry, use: --limit @/home/guillermo/Documentos/vagrant-ansible/playbook.retry</p>
  
  <p>PLAY RECAP *********************************************************************
  192.168.33.10              : ok=1    changed=0    unreachable=0    failed=1  </p>