Add conditional for ubuntu only path

The path /etc/network/interfaces.d/ doesn't need to exist on centos.

Change-Id: I044aacb31329d8f03c82c273fba34fa61c030716
This commit is contained in:
Marc Gariepy 2016-09-27 09:05:35 -04:00
parent 882f325053
commit 1f28e81b02

View File

@ -37,12 +37,14 @@
lxc_net_dhcp_range: 10.100.100.8,10.100.100.253 lxc_net_dhcp_range: 10.100.100.8,10.100.100.253
lxc_net_bridge: lxcbr0 lxc_net_bridge: lxcbr0
post_tasks: post_tasks:
- name: Ensure that /etc/network/interfaces.d/ exists - name: Ensure that /etc/network/interfaces.d/ exists (Debian)
file: file:
path: /etc/network/interfaces.d/ path: /etc/network/interfaces.d/
state: directory state: directory
tags: tags:
- networking-dir-create - networking-dir-create
when:
- ansible_pkg_mgr == 'apt'
- name: Copy network configuration (Debian) - name: Copy network configuration (Debian)
template: template: