Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

17 lines
363B

  1. ---
  2. - name: ssh key
  3. user:
  4. name: root
  5. generate_ssh_key: yes
  6. ssh_key_type: ed25519
  7. when:
  8. - root_ssh_key
  9. - not root_target_directory is defined
  10. - name: ssh authorized keys
  11. template:
  12. src: ssh_authorized_keys.j2
  13. dest: "{{ root_target_directory | default('') }}/root/.ssh/authorized_keys"
  14. when: root_ssh_authorized_keys is defined