From 1f28e81b024fa1015af62ea63f52259e429003e1 Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Tue, 27 Sep 2016 09:05:35 -0400 Subject: [PATCH] Add conditional for ubuntu only path The path /etc/network/interfaces.d/ doesn't need to exist on centos. Change-Id: I044aacb31329d8f03c82c273fba34fa61c030716 --- test-prepare-host.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test-prepare-host.yml b/test-prepare-host.yml index e30baa8d..dd074253 100644 --- a/test-prepare-host.yml +++ b/test-prepare-host.yml @@ -37,12 +37,14 @@ lxc_net_dhcp_range: 10.100.100.8,10.100.100.253 lxc_net_bridge: lxcbr0 post_tasks: - - name: Ensure that /etc/network/interfaces.d/ exists + - name: Ensure that /etc/network/interfaces.d/ exists (Debian) file: path: /etc/network/interfaces.d/ state: directory tags: - networking-dir-create + when: + - ansible_pkg_mgr == 'apt' - name: Copy network configuration (Debian) template: