Fixes #93: Assume Python 3 is available on Ubuntu 20.04.

This commit is contained in:
Jeff Geerling
2020-07-24 16:51:18 -05:00
parent 995ac71c82
commit f351b0a148
-8
View File
@@ -1,19 +1,11 @@
---
- hosts: letsencrypt
gather_facts: false
become: true
vars_files:
- vars/main.yml
pre_tasks:
- name: Install Python if not already present.
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: false
- name: Gather facts after Python is definitely present.
setup:
- name: Ensure apt cache is updated.
apt: update_cache=true cache_valid_time=600