Compare commits
86
Commits
master
..
43755a6016
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43755a6016 | ||
|
|
a795535305 | ||
|
|
a9a9706f2c | ||
|
|
f5bb5e92be | ||
|
|
22e66959ee | ||
|
|
332dfeb6f1 | ||
|
|
19029bdc8b | ||
|
|
9c4a86c0ec | ||
|
|
723f0516da | ||
|
|
975384661e | ||
|
|
ad25bec9fd | ||
|
|
6240217318 | ||
|
|
1c00ec9370 | ||
|
|
371d5a0acd | ||
|
|
41ccf2a5b9 | ||
|
|
8f9cfe3b2f | ||
|
|
6a75237197 | ||
|
|
b04aad12fb | ||
|
|
4fff9f8d80 | ||
|
|
7f12a0f3d8 | ||
|
|
ceb2237bbb | ||
|
|
477c8379c4 | ||
|
|
579c499c02 | ||
|
|
89e366d0f0 | ||
|
|
6fe843355e | ||
|
|
441876fab9 | ||
|
|
00acd4d200 | ||
|
|
d922efd2e4 | ||
|
|
939c5c741f | ||
|
|
2c35409519 | ||
|
|
d2a19cfd5c | ||
|
|
44f5adc682 | ||
|
|
0185797af9 | ||
|
|
e0ecf628cd | ||
|
|
37df881daa | ||
|
|
55b21eae5d | ||
|
|
b1e938b7f0 | ||
|
|
c843f5289b | ||
|
|
9757ed3785 | ||
|
|
876e90ce2b | ||
|
|
7c44cb1ff0 | ||
|
|
5d0630a386 | ||
|
|
3eaf918a53 | ||
|
|
382e82ff85 | ||
|
|
db7dc53bd7 | ||
|
|
7d45f25a7e | ||
|
|
3880b8f41e | ||
|
|
dc3c4a901f | ||
|
|
6bfaa0aa2b | ||
|
|
5dc0424acb | ||
|
|
c12332a853 | ||
|
|
5ace4577a2 | ||
|
|
c0ff01ef40 | ||
|
|
57417514e3 | ||
|
|
0928588c1f | ||
|
|
6d622f2db4 | ||
|
|
b11d65a6f3 | ||
|
|
3623fc292c | ||
|
|
dfca7ec94b | ||
|
|
e8be84bf49 | ||
|
|
322cc0b1ce | ||
|
|
4b38754f8b | ||
|
|
a6bc7ffe04 | ||
|
|
c529e71ebc | ||
|
|
cb46de2b6d | ||
|
|
9169117b25 | ||
|
|
6c94c519fb | ||
|
|
efd96a42b8 | ||
|
|
68661c3cca | ||
|
|
1db20c7ac0 | ||
|
|
7b155b427b | ||
|
|
ca8721e98f | ||
|
|
cdb2559d8f | ||
|
|
443f6623df | ||
|
|
6cf418fe00 | ||
|
|
47ec5fe621 | ||
|
|
240f945cce | ||
|
|
663a04556f | ||
|
|
6febd1acf1 | ||
|
|
008187860c | ||
|
|
cd1be6b5e1 | ||
|
|
15be6149fd | ||
|
|
ca29ad200d | ||
|
|
8079099cee | ||
|
|
9e79185b07 | ||
|
|
b88bf2860f |
@@ -206,7 +206,6 @@ bootstrap_debian:
|
||||
- openssh-server
|
||||
- python3
|
||||
- xfsprogs
|
||||
- xz-utils
|
||||
extra:
|
||||
- bat
|
||||
- curl
|
||||
@@ -259,7 +258,6 @@ bootstrap_ubuntu:
|
||||
- openssh-server
|
||||
- python3
|
||||
- xfsprogs
|
||||
- xz-utils
|
||||
extra:
|
||||
- bash-completion
|
||||
- bat
|
||||
|
||||
@@ -35,12 +35,10 @@
|
||||
}, recursive=True)
|
||||
}}
|
||||
|
||||
# Keyed on os, not hostname: inventories set hostname themselves, and doing so
|
||||
# would otherwise skip enrichment and leave os undefined for validation.
|
||||
- name: Check if pre-computed system_cfg needs enrichment
|
||||
when: system_cfg is defined
|
||||
ansible.builtin.set_fact:
|
||||
_bootstrap_needs_enrichment: "{{ os is not defined }}"
|
||||
_bootstrap_needs_enrichment: "{{ hostname is not defined }}"
|
||||
|
||||
- name: Merge pre-computed system_cfg with bootstrap system_defaults
|
||||
when:
|
||||
|
||||
@@ -317,7 +317,7 @@
|
||||
_autologin: "{{ system_cfg.features.desktop.autologin | default(false) }}"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- _autologin is boolean and not _autologin or (_autologin is string and _autologin | length > 0 and _autologin in system_cfg.users | map(attribute='name'))
|
||||
- _autologin is boolean and not _autologin or (_autologin is string and _autologin | length > 0 and _autologin in system_cfg.users)
|
||||
fail_msg: >-
|
||||
desktop.autologin must be false or a username string present in
|
||||
system.users; got '{{ _autologin }}'. Bool true is not accepted - the
|
||||
@@ -355,12 +355,14 @@
|
||||
|
||||
- name: Validate at least one user with a password is defined
|
||||
vars:
|
||||
_pw_users: "{{ system_cfg.users | selectattr('password', 'defined') | map(attribute='password') | map('string') | reject('equalto', '') | list }}"
|
||||
_pw_users: "{{ system_cfg.users | dict2items | selectattr('value.password', 'defined') | list }}"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_cfg.users | default([]) | length > 0
|
||||
- system_cfg.users | default({}) | length > 0
|
||||
- _pw_users | length > 0
|
||||
fail_msg: "At least one user with a non-empty password must be defined in system.users."
|
||||
- _pw_users[0].key | string | length > 0
|
||||
- _pw_users[0].value.password | string | length > 0
|
||||
fail_msg: "At least one user with a password must be defined in system.users."
|
||||
quiet: true
|
||||
no_log: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user