This commit is contained in:
Gabenov Stanislav
2026-02-09 20:42:24 +03:00
parent 0a8f11397d
commit a6d2623802
38 changed files with 2198 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
- name: Add user
ansible.builtin.user:
name: "{{ user_to_create }}"
shell: /bin/bash
groups: sudo,docker
password: "{{ user_password | password_hash('sha512') }}"
append: yes
update_password: on_create
register: "xray_user"
- name: Add ssh_pbk to user
ansible.posix.authorized_key:
user: "{{ user_to_create }}"
state: "present"
key: "{{ ssh_public_key }}"