Issue 38 stop on wrong value #40

Merged
max merged 6 commits from issue-38-stop-on-wrong-value into dev 2026-09-17 19:53:47 +04:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 93cee75103 - Show all commits
+2 -2
View File
@@ -2,11 +2,11 @@
- name: Set default hostname
ansible.builtin.set_fact:
guest_hostname: "new-lxc-test"
guest_hostname: "test-guest"
- name: Prompt for hostname with immediate validation
ansible.builtin.pause:
prompt: "Enter hostname (letters, digits, hyphens, dots; max 253 chars) [new-lxc-test]"
prompt: "Enter hostname (letters, digits, hyphens (but not leading and trailing), dots; max 253 chars) [{{ guest_hostname }}]"
register: hostname_result
until: >
hostname_result.user_input | length == 0 or
+2 -2
View File
@@ -2,11 +2,11 @@
- name: Set default password
ansible.builtin.set_fact:
lxc_root_password: "new-lxc-test"
lxc_root_password: "test-guest"
- name: Prompt for password
ansible.builtin.pause:
prompt: "Enter password (letters, digits, hyphens, dots; max 253 chars) [new-lxc-test]"
prompt: "Enter password (letters, digits, hyphens, dots; max 253 chars) [{{ lxc_root_password }}]"
echo: false
register: password_result_1
until: >