---

- hosts: all
  pre_tasks:

    - name: RedHat | Install a few packages for the tests
      yum: name={{ item }}
      with_items:
        - file
        - nc
      when: ansible_os_family == "RedHat"

    - name: Debian | Install a few packages for the tests
      apt: name={{ item }}
      with_items:
        - netcat
        - curl
      when: ansible_os_family == "Debian"

---

- hosts: all
  pre_tasks:

    - name: RedHat | Install a few packages for the tests
      yum: name={{ item }}
      with_items:
        - file
        - nc
      when: ansible_os_family == "RedHat"

    - name: Debian | Install a few packages for the tests
      apt: name={{ item }}
      with_items:
        - curl
        - file
        - netcat
      when: ansible_os_family == "Debian"

Add 'file' package for Debian
Add 'file' package for Debian

In order to be able to complete the tests successfully,
the 'file' package is required on the test system.

The package list is also changed to be ordered alphabetically.
