19 lines
471 B
YAML
Executable File
19 lines
471 B
YAML
Executable File
---
|
|
- name: add non AD-GROUP
|
|
hosts: debian_vms
|
|
become: false #root berechtigung
|
|
|
|
tasks:
|
|
- name: add local user
|
|
user:
|
|
name: ansible
|
|
shell: /bin/bash
|
|
#mkpasswd --method=sha-512
|
|
password: ''
|
|
groups: sudo
|
|
|
|
- name: Add SSH paublic Key for User to the "authorized Keys" file
|
|
authorized_key:
|
|
user: ansible
|
|
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOY9BjyR9eK0/BDgwp+1E5LZjd/92fEtH5CcRRlP7lWf"
|