From 1e265fbcd2d8a4dc423348ea1389808dbb972334 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 24 Oct 2018 16:59:50 +0200 Subject: [PATCH] Modify all possible locations of certbot to use Python 3 --- tasks/install.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index 31b99d2..b1f1075 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -18,9 +18,13 @@ state: 'present' update_cache: yes -- name: "" +- name: "Force certbot to use Python 3" lineinfile: - path: '/usr/local/bin/certbot' + path: '{{ item }}' regexp: '^#!/usr/bin/python$' line: '#!/usr/bin/python3' + with_items: + - '/usr/local/bin/certbot' + - '/usr/bin/certbot' ignore_errors: yes + failed_when: false -- GitLab