Skip to content
Snippets Groups Projects
Commit 61ea562b authored by nimrod's avatar nimrod
Browse files

- Move pre_tasks to a seperate play because run_once is currently not...

- Move pre_tasks to a seperate play because run_once is currently not supported with the free strategy.
parent 28c4c8f4
No related branches found
No related tags found
No related merge requests found
......@@ -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") }}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment