Add new work key
This commit is contained in:
parent
294e12fa72
commit
95deb4dc8a
1 changed files with 6 additions and 0 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue