From 35a45819df2b00933a9b12b9cc907e21898fa7fe Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 1 Dec 2016 21:43:33 +0200
Subject: [PATCH] - Added debug messages. - Gather facts after bootstraping.

---
 playbook.yml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/playbook.yml b/playbook.yml
index d39e4d0..c043cea 100644
--- a/playbook.yml
+++ b/playbook.yml
@@ -11,6 +11,9 @@
     register: debian_bootstrap_install_python
     changed_when: "'Unpacking' in debian_bootstrap_install_python.stdout"
 
+  - name: Gather facts
+    setup:
+
   - name: APT install
     apt:
       name:
@@ -23,6 +26,11 @@
     collectd_facts:
     register: collectd_facts
 
+  - name: Debug
+    debug:
+      var: collectd_facts
+      verbosity: 2
+
   - name: Assertions
     assert:
       that:
@@ -35,6 +43,11 @@
     nginx_facts:
     register: nginx_facts
 
+  - name: Debug
+    debug:
+      var: nginx_facts
+      verbosity: 2
+
   - name: Assertions
     assert:
       that:
@@ -50,6 +63,11 @@
       path: /etc/ssl/dhparams.pem
     register: missing_dhparams
 
+  - name: Debug
+    debug:
+      var: missing_dhparams
+      verbosity: 2
+
   - name: Assertions
     assert:
       that:
@@ -70,6 +88,11 @@
       path: /etc/ssl/dhparams.pem
     register: existing_dhparams
 
+  - name: Debug
+    debug:
+      var: existing_dhparams
+      verbosity: 2
+
   - name: Assertions
     assert:
       that:
-- 
GitLab