You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

15 lines
271B

  1. ---
  2. - name: ssh key
  3. user:
  4. name: root
  5. generate_ssh_key: yes
  6. ssh_key_type: ed25519
  7. when: root_ssh_key
  8. - name: ssh authorized keys
  9. template:
  10. src: ssh_authorized_keys.j2
  11. dest: /root/.ssh/authorized_keys
  12. when: root_ssh_authorized_keys is defined