feat(pb,role,task): generalize names of common pre_tasks and their variables, specifies LXC-specific ones

This commit is contained in:
2026-09-17 11:16:18 +04:00
parent daa5826573
commit f29de42397
6 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
- name: Set default hostname
ansible.builtin.set_fact:
lxc_hostname: "new-lxc-test"
guest_hostname: "new-lxc-test"
- name: Prompt for hostname with immediate validation
ansible.builtin.pause:
@@ -19,5 +19,5 @@
- name: Use user input only if provided, otherwise keep the default
ansible.builtin.set_fact:
lxc_hostname: "{{ hostname_result.user_input }}"
guest_hostname: "{{ hostname_result.user_input }}"
when: hostname_result.user_input | length > 0