---
- hosts: localhost
  connection: local
  roles:
    - { name: lae.travis-lxc }
  vars:
    host_quantity: 1
    test_profiles:
      - profile: centos-7
      - profile: centos-6
      - profile: ubuntu-xenial
      - profile: ubuntu-trusty

# Run the following within the containers in the inventory
- hosts: all
  tasks:
    # Solution for avahi-daemon issue from https://github.com/lxc/lxc/issues/25
    - block:
      - name: Install avahi-daemon early on Ubuntu 16 containers
        package:
          name: avahi-daemon
        ignore_errors: True
      - name: Remove nproc from avahi-daemon.conf
        lineinfile:
          dest: /etc/avahi/avahi-daemon.conf
          regexp: "^rlimit-nproc="
          state: absent
      when: "ansible_distribution_release == 'xenial'"

---
- hosts: localhost
  connection: local
  roles:
    - { name: lae.travis-lxc }
  vars:
    host_quantity: 1

# Run the following within the containers in the inventory
- hosts: all
  tasks:
    # Solution for avahi-daemon issue from https://github.com/lxc/lxc/issues/25
    - block:
      - name: Install avahi-daemon early on Ubuntu 16 containers
        package:
          name: avahi-daemon
        ignore_errors: True
      - name: Remove nproc from avahi-daemon.conf
        lineinfile:
          dest: /etc/avahi/avahi-daemon.conf
          regexp: "^rlimit-nproc="
          state: absent
      when: "ansible_distribution_release == 'xenial'"

Revert "Try to fix tests by defining test_profiles"
Revert "Try to fix tests by defining test_profiles"

This reverts commit d229f987eb708ad80543fe02980b02bf5b918b12.
