Create .ssh dir

This commit is contained in:
olli 2022-07-06 15:21:23 +02:00
parent 145503c396
commit 683a6cdb55

View File

@ -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