refactor(schema): rename nested dict keys and simplify validation
This commit is contained in:
8
main.yml
8
main.yml
@@ -10,7 +10,7 @@
|
||||
What is your username?
|
||||
private: false
|
||||
|
||||
- name: system_user_public_key
|
||||
- name: system_user_key
|
||||
prompt: |
|
||||
What is your ssh key?
|
||||
private: false
|
||||
@@ -40,9 +40,9 @@
|
||||
'name': (
|
||||
(system_user_input.name | default('') | string | length) > 0
|
||||
) | ternary(system_user_input.name | string, system_user_name | default('') | string),
|
||||
'public_key': (
|
||||
(system_user_input.public_key | default('') | string | length) > 0
|
||||
) | ternary(system_user_input.public_key | string, system_user_public_key | default('') | string),
|
||||
'key': (
|
||||
(system_user_input.key | default('') | string | length) > 0
|
||||
) | ternary(system_user_input.key | string, system_user_key | default('') | string),
|
||||
'password': (
|
||||
(system_user_input.password | default('') | string | length) > 0
|
||||
) | ternary(system_user_input.password | string, system_user_password | default('') | string)
|
||||
|
||||
Reference in New Issue
Block a user