From 16c0e5ee98d487a38f8242245957530b8ec7c470 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 11 Sep 2024 21:21:25 -0700 Subject: [PATCH] html-deployer setup with keys --- ansible/playbooks/setup-git-web-deployer.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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') }}"