From 9be02b4b4f194d3f5c7aae7e2d752229844512b7 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 11 Jun 2018 19:06:07 +0200
Subject: [PATCH] Force certbot to use Python 3

---
 tasks/install.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tasks/install.yml b/tasks/install.yml
index 8ef1d96..31b99d2 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -17,3 +17,10 @@
     pkg: 'certbot'
     state: 'present'
     update_cache: yes
+
+- name: ""
+  lineinfile:
+    path: '/usr/local/bin/certbot'
+    regexp: '^#!/usr/bin/python$'
+    line: '#!/usr/bin/python3'
+  ignore_errors: yes
-- 
GitLab