html-deployer setup with keys
This commit is contained in:
parent
8f18ff8c85
commit
16c0e5ee98
@ -10,5 +10,9 @@
|
||||
name: "{{ username }}"
|
||||
comment: Used for deploying html from Gitea Actions
|
||||
group: nginx
|
||||
generate_ssh_key: true
|
||||
ssh_key_comment: Generated by Ansible for Gitea Actions
|
||||
- name: Set the authorized keys
|
||||
become: true
|
||||
authorized_key:
|
||||
user: "{{ username }}"
|
||||
state: present
|
||||
key: "{{ lookup('file', '~/.ssh/vultr/html-deployer.pem.pub') }}"
|
||||
|
Loading…
Reference in New Issue
Block a user