From 4991c2c1f4159d7631ff163428162d6a3016b4ee Mon Sep 17 00:00:00 2001 From: robinzoncruzo <47447350+robinzoncruzo@users.noreply.github.com> Date: Wed, 19 Jan 2022 16:20:36 +0300 Subject: [PATCH 1/2] Add configuration backup on changes --- tasks/configure.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index f34caa9..57a9f75 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -3,6 +3,7 @@ template: src: etc/netplan/config.yaml.j2 dest: "{{ netplan_config_file }}" + backup: true become: true when: netplan_configuration != [] notify: netplan generate config From 7376c6c5cf80ba083458fe35f143cac3488404fc Mon Sep 17 00:00:00 2001 From: robinzoncruzo <47447350+robinzoncruzo@users.noreply.github.com> Date: Wed, 19 Jan 2022 16:59:17 +0300 Subject: [PATCH 2/2] Fixed spacing --- tasks/configure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 57a9f75..c3c2d79 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -3,7 +3,7 @@ template: src: etc/netplan/config.yaml.j2 dest: "{{ netplan_config_file }}" - backup: true + backup: true become: true when: netplan_configuration != [] notify: netplan generate config