19 lines
493 B
YAML
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') }}"
|