summaryrefslogtreecommitdiffstats
path: root/roles/cuda/tests/install.yml
blob: 03b936037761071c34864e4e29c045998babc540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- 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'"