26 lines
851 B
YAML
26 lines
851 B
YAML
---
|
|
# Tasks to set users
|
|
- group:
|
|
name: admin
|
|
state: present
|
|
|
|
- user:
|
|
name: "{{ item }}"
|
|
comment: "Admin users"
|
|
group: admin
|
|
with_items:
|
|
- egon
|
|
- wim
|
|
|
|
- name: wim key
|
|
authorized_key:
|
|
user: wim
|
|
key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPcJbucOFOFrPZwM1DKOvscYpDGYXKsgeh3/6skmZn/IhLWYHY6oanm4ifmY3kU0oNXpKgHR43x3JdkIRKmrEpYULspwdlj/ZKPYxFWhVaSTjJvmSJEgy7ET1xk+eVoKV1xRWm/BugWpbseFAOcI9ZwfH++S8JhfX6GgCIy06RUpM8EcFAWb/GO699ZnQ67qMxNdSWYHtK1zu+9svWgEzPk4zc2TihJsc7DxcfQCNfQ4vKH1Im3+QfG5bRtdyVl9yjbE+o4EWhPEWsTBgBosJfbqfywsuzibhTgyybR0Zzm4JN6Wh5wVazvNutAB291dIJt22XEx5tCyOAjLPybLy3 wim@wim-HP-Compaq-Elite-8300-MT'
|
|
state: present
|
|
|
|
- name: egon_key
|
|
authorized_key:
|
|
user: egon
|
|
key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUBdTEHUj6MxvfEU7KcI+UPAvqJ9jGJ7hHm3e7XFTb9 egon@egon-pc'
|
|
state: present
|