diff --git a/defaults/main.yml b/defaults/main.yml index c979a353..d6102982 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -95,6 +95,9 @@ lxc_container_base_name: "{{ lxc_cache_map.distro }}-{{ lxc_cache_map.release }} # Set the default zfs root name lxc_container_zfs_root_name: "pool/lxc" +# Allow OSA to generate the LXC network configuration and manage the interface state. +lxc_net_managed: true + # lxc container net network lxc_net_bridge: lxcbr0 lxc_net_bridge_port: none diff --git a/releasenotes/notes/lxc_net_managed-7a898d07c240b424.yaml b/releasenotes/notes/lxc_net_managed-7a898d07c240b424.yaml new file mode 100644 index 00000000..cb415b77 --- /dev/null +++ b/releasenotes/notes/lxc_net_managed-7a898d07c240b424.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + The lxc_hosts role now supports the ability to omit lxc network + interface deployment. The option `lxc_net_managed` is a Boolean + operator and defaults to **true**. When this option is set to + **false** the role will not deploy an interface file or attempt + to manage the state of the interface. diff --git a/tasks/main.yml b/tasks/main.yml index dc1a4eb6..64db2852 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -75,6 +75,8 @@ - lxc_hosts-config - include_tasks: lxc_net.yml + when: + - lxc_net_managed | bool tags: - lxc_hosts-config