Role prerequisites: add task to generate SSH keys

This commit is contained in:
Julian Labus 2018-06-15 09:00:43 +02:00
parent 98324509dd
commit 50cc1a3efa
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

View file

@ -13,3 +13,8 @@
- name: Test root access for admin account - name: Test root access for admin account
command: "true" command: "true"
changed_when: False changed_when: False
- name: Generate SSH keys
shell: ssh-keygen -b 4096 -t rsa -f /home/admin/.ssh/id_rsa -q -N ""
args:
creates: /home/admin/.ssh/id_rsa