diff --git a/tasks/hostname_validation.yaml b/tasks/hostname_validation.yaml index 252ce87..9dd9f81 100644 --- a/tasks/hostname_validation.yaml +++ b/tasks/hostname_validation.yaml @@ -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 diff --git a/tasks/lxc_root_password_validation.yaml b/tasks/lxc_root_password_validation.yaml index e40e8bd..cf946b6 100644 --- a/tasks/lxc_root_password_validation.yaml +++ b/tasks/lxc_root_password_validation.yaml @@ -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: >