Skip to content
Snippets Groups Projects
Commit 1e265fbc authored by jurgenhaas's avatar jurgenhaas
Browse files

Modify all possible locations of certbot to use Python 3

parent f480f6bc
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment