Creating the html-deployer user for web deployment stuff over ssh
This commit is contained in:
14
ansible/playbooks/setup-git-web-deployer.yml
Normal file
14
ansible/playbooks/setup-git-web-deployer.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- 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
|
||||
generate_ssh_key: true
|
||||
ssh_key_comment: Generated by Ansible for Gitea Actions
|
||||
Reference in New Issue
Block a user