infra/ansible/playbooks/setup-git-web-deployer.yml
shockrah 16c0e5ee98
Some checks failed
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 37s
Actions demo / simple-echo (push) Has been cancelled
html-deployer setup with keys
2024-09-11 21:22:25 -07:00

19 lines
493 B
YAML

---
- hosts: webhost
vars:
username: html-deployer
remote_user: webadmin
tasks:
- name: Create user for git actions to deploy html
become: true
user:
name: "{{ username }}"
comment: Used for deploying html from Gitea Actions
group: nginx
- name: Set the authorized keys
become: true
authorized_key:
user: "{{ username }}"
state: present
key: "{{ lookup('file', '~/.ssh/vultr/html-deployer.pem.pub') }}"