From f6640e2768c7b75066accdb292b898e63d717fa8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 2 Feb 2016 20:49:53 +0000 Subject: [PATCH] Blacklist cdc_ether on all virt hosts. --- roles/base/files/blacklist-cdc_ether.conf | 1 + roles/base/tasks/main.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 roles/base/files/blacklist-cdc_ether.conf diff --git a/roles/base/files/blacklist-cdc_ether.conf b/roles/base/files/blacklist-cdc_ether.conf new file mode 100644 index 0000000000..415db63935 --- /dev/null +++ b/roles/base/files/blacklist-cdc_ether.conf @@ -0,0 +1 @@ +blacklist cdc_ether diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 78ab1cda25..9f48d28cb0 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -341,6 +341,17 @@ - config - base +# +# Blacklist the cdc_ether module as we don't want it loading mgmt usb0 and spewing to logs. +# +- name: Blacklist cdc_ether module + copy: src=blacklist-cdc_ether.conf dest=/etc/modprobe.d/blacklist-cdc_ether.conf + when: ansible_virtualization_role == 'host' + tags: + - config + - base + - cdc_ether + # # Watchdog stuff #