Summary
Would it make sense to have a task that generates a key pair for the web user?
Motivation
On a new migration, I'm frequently using rsync to transfer shared content like the uploads directory. This requires me to have an ssh key pair on the new Trellis server.
- name: Generate an OpenSSH keypair with the default values (4096 bits, rsa)
community.crypto.openssh_keypair:
path: /home/web/.ssh/id_rsa
tags: [webkeypair]
That's obviously an ignorant approach, but I'm not even sure if the idea makes sense.
Additional context
Summary
Would it make sense to have a task that generates a key pair for the web user?
Motivation
On a new migration, I'm frequently using
rsyncto transfer shared content like theuploadsdirectory. This requires me to have an ssh key pair on the new Trellis server.That's obviously an ignorant approach, but I'm not even sure if the idea makes sense.
Additional context