keypair.yaml 466 B

12345678910111213
  1. ---
  2. - name: Tinc key generation
  3. command: "{{ tincd }} -c '{{ _destdir }}' -o name={{ tinc_hostname }} --generate-keys=4096"
  4. args:
  5. creates: "{{ _destdir }}/{{ tinc_hostname }}.priv"
  6. delegate_to: localhost
  7. - name: Tinc rename private key
  8. command: "mv '{{ _destdir }}/rsa_key.priv' '{{ _destdir }}/{{ tinc_hostname }}.priv'"
  9. args:
  10. removes: "{{ _destdir }}/rsa_key.priv"
  11. creates: "{{ _destdir }}/{{ tinc_hostname }}.priv"
  12. delegate_to: localhost