From 923812b3b06b9f000a37ce502ad4b1aebe02e46c Mon Sep 17 00:00:00 2001 From: Tobias Richter Date: Fri, 9 Apr 2021 18:07:23 +0200 Subject: [PATCH] Introduce certbot_snap_classic_support to be able to disable classic snap support, leads to problems with Ubuntu 20.04 --- defaults/main.yml | 3 +++ tasks/install-with-snap.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 230eccb..88b2f7e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -37,3 +37,6 @@ certbot_keep_updated: true # Where to put Certbot when installing from source. certbot_dir: /opt/certbot + +# Controls if classic snap support will be enabled when certbot_install_method is 'snap' +certbot_snap_classic_support: true \ No newline at end of file diff --git a/tasks/install-with-snap.yml b/tasks/install-with-snap.yml index 0651e71..62187cb 100644 --- a/tasks/install-with-snap.yml +++ b/tasks/install-with-snap.yml @@ -15,6 +15,7 @@ src: /var/lib/snapd/snap dest: /snap state: link + when: certbot_snap_classic_support - name: Update snap after install. shell: snap install core; snap refresh core