From 61ea562b87636f37d169825614fabc7a312d581c Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Mon, 12 Dec 2016 00:21:54 +0200 Subject: [PATCH] - Move pre_tasks to a seperate play because run_once is currently not supported with the free strategy. --- tests/playbook.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/playbook.yml b/tests/playbook.yml index 5ccb129..4d80241 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -9,13 +9,16 @@ - hosts: all strategy: free - pre_tasks: + tasks: - name: Create SSH keypair local_action: command ssh-keygen -t rsa -N '' -f files/id_rsa run_once: True become: False args: creates: files/id_rsa + +- hosts: all + strategy: free roles: - role: gitolite gitolite_public_key: '{{ lookup("file", "id_rsa.pub") }}' -- GitLab