Create .ssh dir
This commit is contained in:
parent
145503c396
commit
683a6cdb55
@ -61,6 +61,7 @@
|
||||
- sudo
|
||||
- golang
|
||||
- make
|
||||
- openssh-server
|
||||
update_cache: yes
|
||||
install_recommends: no
|
||||
|
||||
@ -199,6 +200,14 @@
|
||||
notify:
|
||||
- Restart sshd
|
||||
|
||||
- name: Create .ssh dir
|
||||
ansible.builtin.file:
|
||||
path: /root/.ssh
|
||||
owner: root
|
||||
group: docker
|
||||
state: directory
|
||||
mode: '0550'
|
||||
|
||||
- name: Generate an OpenSSH keypair ed25519
|
||||
community.crypto.openssh_keypair:
|
||||
path: /root/.ssh/id_ed25519
|
||||
|
Loading…
Reference in New Issue
Block a user