From 890026c2ede2eb6992285ed5cc617f97aaa7afd1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= <bpiotrowski@archlinux.org>
Date: Mon, 4 Sep 2017 12:47:09 +0200
Subject: [PATCH] common: make configure network optional

---
 roles/common/defaults/main.yml | 2 ++
 roles/common/tasks/main.yml    | 1 +
 2 files changed, 3 insertions(+)
 create mode 100644 roles/common/defaults/main.yml

diff --git a/roles/common/defaults/main.yml b/roles/common/defaults/main.yml
new file mode 100644
index 000000000..0bda1e3c2
--- /dev/null
+++ b/roles/common/defaults/main.yml
@@ -0,0 +1,2 @@
+---
+configure_network: false
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index 8c78f27b5..218fdc4d0 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -34,6 +34,7 @@
   template: src=10-static-ethernet.network.j2 dest=/etc/systemd/network/10-static-ethernet.network owner=root group=root mode=0644
   notify:
     - restart networkd
+  when: configure_network
 
 - name: configure default qdisc
   sysctl:
-- 
GitLab