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:
parent
882f325053
commit
1f28e81b02
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user