html-deployer setup with keys
Some checks failed
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 37s
Actions demo / simple-echo (push) Has been cancelled

This commit is contained in:
shockrah 2024-09-11 21:21:25 -07:00
parent 8f18ff8c85
commit 16c0e5ee98

View File

@ -10,5 +10,9 @@
name: "{{ username }}" name: "{{ username }}"
comment: Used for deploying html from Gitea Actions comment: Used for deploying html from Gitea Actions
group: nginx group: nginx
generate_ssh_key: true - name: Set the authorized keys
ssh_key_comment: Generated by Ansible for Gitea Actions become: true
authorized_key:
user: "{{ username }}"
state: present
key: "{{ lookup('file', '~/.ssh/vultr/html-deployer.pem.pub') }}"