feat(global_defaults): add root.shell to system schema and normalization
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
- name: Set root shell
|
- name: Set root shell
|
||||||
ansible.builtin.command: >-
|
ansible.builtin.command: >-
|
||||||
{{ chroot_command }} /usr/sbin/usermod --shell {{ system_cfg.root.shell | default('/bin/bash') }} root
|
{{ chroot_command }} /usr/sbin/usermod --shell {{ system_cfg.root.shell }} root
|
||||||
register: configuration_root_shell_result
|
register: configuration_root_shell_result
|
||||||
changed_when: configuration_root_shell_result.rc == 0
|
changed_when: configuration_root_shell_result.rc == 0
|
||||||
|
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ system_defaults:
|
|||||||
users: []
|
users: []
|
||||||
root:
|
root:
|
||||||
password: ""
|
password: ""
|
||||||
|
shell: "/bin/bash"
|
||||||
luks:
|
luks:
|
||||||
enabled: false
|
enabled: false
|
||||||
passphrase: ""
|
passphrase: ""
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
users: "{{ system_raw.users | default([]) }}"
|
users: "{{ system_raw.users | default([]) }}"
|
||||||
root:
|
root:
|
||||||
password: "{{ system_raw.root.password | string }}"
|
password: "{{ system_raw.root.password | string }}"
|
||||||
|
shell: "{{ system_raw.root.shell | default('/bin/bash') | string }}"
|
||||||
# --- LUKS disk encryption ---
|
# --- LUKS disk encryption ---
|
||||||
luks:
|
luks:
|
||||||
enabled: "{{ system_raw.luks.enabled | bool }}"
|
enabled: "{{ system_raw.luks.enabled | bool }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user