mirror of
https://github.com/geerlingguy/ansible-for-devops.git
synced 2024-05-19 06:50:03 +00:00
Fixes #93: Assume Python 3 is available on Ubuntu 20.04.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user