From 58f54fc8a65167732d931ae1a0504bcfa02ea56b Mon Sep 17 00:00:00 2001 From: Federico Capoano Date: Tue, 27 Aug 2024 14:26:26 -0400 Subject: [PATCH] [change] Set default site to empty instead of removing it This should avoid the default site to be overridden when upgrading the Freeradius package, which can cause the openwisp site to break. --- tasks/freeradius.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/freeradius.yml b/tasks/freeradius.yml index 5f47d3da..fe64fd76 100644 --- a/tasks/freeradius.yml +++ b/tasks/freeradius.yml @@ -174,9 +174,11 @@ group: freerad - name: Remove default site - file: + # Leave empty to ensure upgrades to freeradius + # will not overwrite it + copy: + content: "# Empty, Generated by Ansible OpenWISP\n\n" dest: "{{ item }}" - state: absent with_items: - "{{ freeradius_sites_enabled_dir }}/default"