Created
August 30, 2017 08:14
-
-
Save Voronenko/7db11e31be1a5383ef988a647732c807 to your computer and use it in GitHub Desktop.
Workaround: ensures python 2 installed to prevent failures on running ansible play on naked 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- block: | |
- name: Raw Python 2 | Bootstrap | Try to gather facts | |
setup: | |
rescue: | |
- name: Raw Python 2 | Bootstrap | Install 'python-minimal' | |
raw: "test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)" | |
- name: Raw Python 2 | Bootstrap | Gather facts | |
setup: | |
tags: | |
- always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment