From 1a92706a80d58313eb3548d74d2170f1d852f0ae Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 12 Dec 2016 00:28:12 +0200
Subject: [PATCH] - Move pre_tasks to a seperate play because run_once is
 currently not supported with the free strategy.

---
 tests/playbook.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/playbook.yml b/tests/playbook.yml
index d50e671..aec7729 100644
--- a/tests/playbook.yml
+++ b/tests/playbook.yml
@@ -8,14 +8,16 @@
   roles: [adarnimrod.debian-bootstrap]
 
 - hosts: all
-  strategy: free
-  pre_tasks:
+  tasks:
       - name: Create SSH keypair
         become: False
         local_action: command ssh-keygen -t rsa -N '' -f files/id_rsa
         run_once: True
         args:
             creates: files/id_rsa
+
+- hosts: all
+  strategy: free
   roles:
     - role: adarnimrod.nginx
     - role: pelican-gitreceive
-- 
GitLab