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