SHARE
TWEET

Untitled

a guest Apr 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - hosts: all
  2.   become: true
  3.   gather_facts: false
  4.  
  5.   tasks:
  6.   - name: Generate /etc/ssh/ RSA host key
  7.     command : ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -C "" -N ""
  8.     args:
  9.       creates: /etc/ssh/ssh_host_rsa_key
  10.  
  11.   - name: Generate /etc/ssh/ DSA host key
  12.     command : ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C "" -N ""
  13.     args:
  14.       creates: /etc/ssh/ssh_host_dsa_key
  15.  
  16.   - name: Generate /etc/ssh/ ECDSA host key
  17.     command : ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C "" -N ""
  18.     args:
  19.       creates: /etc/ssh/ssh_host_ecdsa_key
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top