Create .ssh dir
This commit is contained in:
parent
145503c396
commit
683a6cdb55
@ -61,6 +61,7 @@
|
|||||||
- sudo
|
- sudo
|
||||||
- golang
|
- golang
|
||||||
- make
|
- make
|
||||||
|
- openssh-server
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
install_recommends: no
|
install_recommends: no
|
||||||
|
|
||||||
@ -199,6 +200,14 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart sshd
|
- 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
|
- name: Generate an OpenSSH keypair ed25519
|
||||||
community.crypto.openssh_keypair:
|
community.crypto.openssh_keypair:
|
||||||
path: /root/.ssh/id_ed25519
|
path: /root/.ssh/id_ed25519
|
||||||
|
Loading…
Reference in New Issue
Block a user