debian: gpgconf; redhat: epel-release; "add" user - default no users
This commit is contained in:
parent
2833ecf946
commit
45a281e706
|
@ -1,3 +1,4 @@
|
|||
has_hwrng: '{{ansible_virtualization_role != "guest" and ansible_local.devices.hwrng }}'
|
||||
is_virt_guest: '{{ansible_virtualization_role == "guest"}}'
|
||||
is_container: '{{ansible_virtualization_role == "guest" and ansible_virtualization_type == "lxc"}}'
|
||||
sys_default_users: []
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
- file
|
||||
- fizsh
|
||||
- git
|
||||
- gpgconf
|
||||
- haveged
|
||||
- htop
|
||||
- inetutils-ping
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
name: '{{lookup("flattened", items)}}'
|
||||
vars:
|
||||
items:
|
||||
- epel-release
|
||||
- '{{ [] if is_virt_guest else ["chrony", "smartmontools"] }}'
|
||||
#- yum-cron
|
||||
- glibc-langpack-de
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
# vim: set et sw=2 sts=2 ts=2:
|
||||
- name: 'setup default user(s)'
|
||||
with_items: '{{sys_default_users}}'
|
||||
user:
|
||||
|
@ -8,3 +10,8 @@
|
|||
createhome: yes
|
||||
move_home: yes
|
||||
append: yes
|
||||
|
||||
- name: 'user-defined authorized_keys'
|
||||
with_items: '{{sys_default_users}}'
|
||||
ansible.posix.authorized_key:
|
||||
user: '{{item.name}}'
|
||||
|
|
Loading…
Reference in a new issue