diff --git a/ansible/playbooks/setup-git-web-deployer.yml b/ansible/playbooks/setup-git-web-deployer.yml index 0ca5020..6ecc874 100644 --- a/ansible/playbooks/setup-git-web-deployer.yml +++ b/ansible/playbooks/setup-git-web-deployer.yml @@ -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') }}"