Compare commits
88
Commits
43755a6016
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a43c9a29e | ||
|
|
9cc0c704a7 | ||
|
|
96220d424e | ||
|
|
b927099087 | ||
|
|
34ba56cf51 | ||
|
|
58c194d133 | ||
|
|
04dc1baa99 | ||
|
|
bf85af462c | ||
|
|
be8eabaebc | ||
|
|
9fbdcfe4e0 | ||
|
|
26713dccad | ||
|
|
05a9c15f8f | ||
|
|
b23a895bd9 | ||
|
|
ce7e4c85ac | ||
|
|
408fc78920 | ||
|
|
80983a05c2 | ||
|
|
78403381f7 | ||
|
|
f43e9e55c9 | ||
|
|
8dd0ee0fbd | ||
|
|
ffc54d25b1 | ||
|
|
b2e3a7ed41 | ||
|
|
dbd5ba55bd | ||
|
|
4acb8ccb39 | ||
|
|
609c1e2ece | ||
|
|
f534b9161f | ||
|
|
3d7772823f | ||
|
|
a64553b0a0 | ||
|
|
3b68a65ab7 | ||
|
|
45e7c214bd | ||
|
|
f66a71f27a | ||
|
|
8ebed3aa0f | ||
|
|
197e9815e3 | ||
|
|
f7674722bc | ||
|
|
afebd0a7fe | ||
|
|
0e7c64b27e | ||
|
|
98d8a07a70 | ||
|
|
48ad1b9c9d | ||
|
|
2c4bf6f099 | ||
|
|
0f405c387c | ||
|
|
f13616a809 | ||
|
|
be1dfc9528 | ||
|
|
1a622530cd | ||
|
|
329533b08b | ||
|
|
512f4a3a5c | ||
|
|
fd6ceb60cd | ||
|
|
ce8640af9b | ||
|
|
61d21fbdeb | ||
|
|
aa4b94fee2 | ||
|
|
a523c843e4 | ||
|
|
a32e3308fc | ||
|
|
310613072d | ||
|
|
ed483d401a | ||
|
|
43e6867a8c | ||
|
|
5b66df7e7b | ||
|
|
aef1375392 | ||
|
|
1d3a0817cb | ||
|
|
c2dcbe418e | ||
|
|
224ce47e26 | ||
|
|
5c727797b9 | ||
|
|
c2269d7443 | ||
|
|
de75466d89 | ||
|
|
a498b879a4 | ||
|
|
8664a26e89 | ||
|
|
2c2f7161e9 | ||
|
|
1d4b335414 | ||
|
|
a6136520d5 | ||
|
|
dd819ec8b5 | ||
|
|
fdd9e60970 | ||
|
|
bb1e42b0e3 | ||
|
|
9e6d7b75be | ||
|
|
4e381435d1 | ||
|
|
e5f9bd8ad3 | ||
|
|
4f4ce8cd71 | ||
|
|
8c0e7e6dd3 | ||
|
|
b542d30900 | ||
|
|
b7eb9222b0 | ||
|
|
505b087ec5 | ||
|
|
37b94172af | ||
|
|
1282ef0a76 | ||
|
|
6bfc5f6eb5 | ||
|
|
af06eb10ae | ||
|
|
aad8bb3bbd | ||
|
|
ca76f4445e | ||
|
|
0be7bf4aba | ||
|
|
20d7dcbc5f | ||
|
|
c1266d0daa | ||
|
|
f047be119d | ||
|
|
a76573ff21 |
@@ -206,6 +206,7 @@ bootstrap_debian:
|
||||
- openssh-server
|
||||
- python3
|
||||
- xfsprogs
|
||||
- xz-utils
|
||||
extra:
|
||||
- bat
|
||||
- curl
|
||||
@@ -258,6 +259,7 @@ bootstrap_ubuntu:
|
||||
- openssh-server
|
||||
- python3
|
||||
- xfsprogs
|
||||
- xz-utils
|
||||
extra:
|
||||
- bash-completion
|
||||
- bat
|
||||
|
||||
@@ -35,10 +35,12 @@
|
||||
}, 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: "{{ hostname is not defined }}"
|
||||
_bootstrap_needs_enrichment: "{{ os 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)
|
||||
- _autologin is boolean and not _autologin or (_autologin is string and _autologin | length > 0 and _autologin in system_cfg.users | map(attribute='name'))
|
||||
fail_msg: >-
|
||||
desktop.autologin must be false or a username string present in
|
||||
system.users; got '{{ _autologin }}'. Bool true is not accepted - the
|
||||
@@ -355,14 +355,12 @@
|
||||
|
||||
- name: Validate at least one user with a password is defined
|
||||
vars:
|
||||
_pw_users: "{{ system_cfg.users | dict2items | selectattr('value.password', 'defined') | list }}"
|
||||
_pw_users: "{{ system_cfg.users | selectattr('password', 'defined') | map(attribute='password') | map('string') | reject('equalto', '') | list }}"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_cfg.users | default({}) | length > 0
|
||||
- system_cfg.users | default([]) | length > 0
|
||||
- _pw_users | length > 0
|
||||
- _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."
|
||||
fail_msg: "At least one user with a non-empty password must be defined in system.users."
|
||||
quiet: true
|
||||
no_log: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user