Continuous Deployment Role#
Creates a user (called off by default) and adds a SSH public key to its authorized_keys.
Those are used to setup a CI/CD using GitHub Actions.
Setup a new node#
To setup a new node, create a file called host_vars/<node_name>/continuous-deployment.yml with the following variable:
continuous_deployment_ssh_public_key: "ssh-ed25519 AAAAC3Nz[...] off@<node_name>"
The SSH public key put in this variable is used to authenticate the deployer user. The corresponding private key should be added to the GitHub Actions secrets.
This public/private keypair can be generated with
ssh-keygen -t ed25519 -C "off@<node_name>"
Defaults#
---
continuous_deployment_user: "off"
continuous_deployment_ssh_public_key: ""