Add new work key

This commit is contained in:
Anthony Rose 2023-04-12 17:28:44 +01:00
parent 294e12fa72
commit 95deb4dc8a

View file

@ -43,3 +43,9 @@
regexp: "{{ 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMMMawkF2TJzmqHewciwMRhOOTE9W1+vXq1yzV13KWUg' | regex_escape() }}" regexp: "{{ 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMMMawkF2TJzmqHewciwMRhOOTE9W1+vXq1yzV13KWUg' | regex_escape() }}"
mode: '0600' mode: '0600'
state: absent state: absent
- name: Add work ed25519 key to authorized_keys
ansible.builtin.lineinfile:
path: "{{ ansible_env.HOME }}/.ssh/authorized_keys"
line: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJV4Cddvb/D2/LDQc6HyG6kaW9XIGHYysGBebDlklclM acp-work"
create: yes
mode: '0600'