Merge pull request #148 from jsenin/piku-installer-fixes

Avoid install python2 each time at pre_task
pull/142/head
Rui Carmo 2019-11-26 08:41:04 +00:00 zatwierdzone przez GitHub
commit 59a3b98c88
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -4,7 +4,7 @@
gather_facts: no
pre_tasks:
- name: Install python2 required by Ansible
raw: "( /usr/bin/python --version 2>&1 | grep -c 'Python' > /dev/null ) || apt-get update && apt-get -y install python"
raw: "( /usr/bin/python --version 2>&1 | grep -c 'Python' > /dev/null ) || ( apt-get update && apt-get -y install python )"
- hosts: all
become: yes