Deploy SSH public key.

This commit is contained in:
yohan 2024-10-23 20:34:01 +02:00
parent aa606401ea
commit 69b0723131
2 changed files with 7 additions and 0 deletions

View File

@ -14,3 +14,8 @@
dest: "{{ ansible_user_dir }}/.ssh/"
mode: 0600
- name: Deploy SSH public key
copy:
src: "{{ ansible_user_dir }}/{{ ANSIBLE_WORKDIR }}/id_rsa.pub"
dest: "/{{ ansible_user_dir }}/.ssh/"
mode: 0640

View File

@ -90,6 +90,8 @@
with_items:
- name: secrets/bootstrap/id_rsa
dir: "{{ remote_workdir }}"
- name: secrets/bootstrap/id_rsa.pub
dir: "{{ remote_workdir }}"
environment:
SECRETS_ARCHIVE_PASSPHRASE: "{{ lookup('env', 'SECRETS_ARCHIVE_PASSPHRASE') }}"