mirror of
https://github.com/luzifer-ansible/deploy-git.git
synced 2024-09-18 22:32:55 +00:00
Add automated keygen
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
85393ae446
commit
2813d195d1
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
git_checkouts: []
|
deploy_git_checkouts: []
|
||||||
|
deploy_git_keygen: false
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Generate deployment SSH key if not available
|
||||||
|
command: 'ssh-keygen -b 256 -t ed25519 -q -N "" -f "{{ item.key_file }}" -C "Ansible generated deployment key for {{ item.repo }}"'
|
||||||
|
args:
|
||||||
|
creates: '{{ item.key_file }}'
|
||||||
|
when: deploy_git_keygen and item.key_file is defined
|
||||||
|
|
||||||
- name: Execute pre-commands
|
- name: Execute pre-commands
|
||||||
command: '{{ item.pre_command.command }}'
|
command: '{{ item.pre_command.command }}'
|
||||||
args:
|
args:
|
||||||
|
Loading…
Reference in New Issue
Block a user