Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit aeadedc

Browse files
committed
Fixes #1245: Ensure bootstrap works if Python 2 isn't installed on Ubuntu 16.04.
1 parent ac841e1 commit aeadedc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/prod/bootstrap/init.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
vars_files:
55
- vars.yml
66

7+
pre_tasks:
8+
# See: https://github.com/geerlingguy/drupal-vm/issues/1245
9+
- name: Install Python if it's not available.
10+
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
11+
register: output
12+
changed_when: output.stdout != ""
13+
- action: setup
14+
715
tasks:
816
- name: Create admin user account.
917
user:

0 commit comments

Comments
 (0)