From a9ad9aa579bde5bb71196cb4ddc4405b7e8d07c8 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 1 Dec 2016 21:37:18 +0200
Subject: [PATCH] - Add bootstraping Python installation.

---
 playbook.yml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/playbook.yml b/playbook.yml
index 790dddd..d39e4d0 100644
--- a/playbook.yml
+++ b/playbook.yml
@@ -1,6 +1,16 @@
 ---
 - hosts: all
+  gather_facts: False
   tasks:
+  - name: Update APT sources
+    raw: DEBIAN_FRONTEND=noninteractive apt-get update
+    changed_when: False
+
+  - name: APT install Python
+    raw: DEBIAN_FRONTEND=noninteractive apt-get install -qy python2.7 python
+    register: debian_bootstrap_install_python
+    changed_when: "'Unpacking' in debian_bootstrap_install_python.stdout"
+
   - name: APT install
     apt:
       name:
@@ -8,7 +18,6 @@
       - nginx
       - openssl
       state: present
-      update_cache: yes
 
   - name: Collectd facts
     collectd_facts:
-- 
GitLab