Let jenkins generate SSH keys
Change-Id: I9987623224daa93bdda8be81c334a3eee11db307 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
3c90181ee3
commit
06e87cf8cf
|
@ -12,21 +12,6 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
- hosts: localhost
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
# Setup SSH to localhost
|
||||
- name: Generate SSH keys.
|
||||
shell: ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -P ""
|
||||
delegate_to: localhost
|
||||
- name: Setup authorized_keys
|
||||
shell: cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
||||
delegate_to: localhost
|
||||
- name: keyscan
|
||||
shell: ssh-keyscan -H localhost >> ~/.ssh/known_hosts
|
||||
delegate_to: localhost
|
||||
|
||||
- hosts: localhost
|
||||
sudo: yes
|
||||
vars:
|
||||
|
|
Loading…
Reference in New Issue