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
@@ -14,8 +14,8 @@
- name: Include input and validation for hostname
ansible.builtin.include_tasks: ../tasks/hostname_validation.yaml
- name: Include input and validation for password
ansible.builtin.include_tasks: ../tasks/password_validation.yaml
- name: Include input and validation for LXC root password
ansible.builtin.include_tasks: ../tasks/lxc_root_password_validation.yaml
- name: Include input and validation for IP
ansible.builtin.include_tasks: ../tasks/ip_validation.yaml
@@ -33,7 +33,7 @@
tasks:
- name: Add the target host to the inventory
ansible.builtin.add_host:
name: "{{ lxc_ip_address }}"
name: "{{ guest_ip_address }}"
groups: new_host
ansible_user: ansible
ansible_become_password: "{{ ansible_become_passwd }}"
@@ -58,10 +58,10 @@
- name: Include human admin user role
ansible.builtin.include_role:
name: ../roles/human_admin_user
when: "hostvars['localhost']['lxc_human_admin_user'] | bool"
when: "hostvars['localhost']['create_human_admin_user'] | bool"
- name: Include update configs role
ansible.builtin.include_role:
name: ../roles/update_configs
when: "hostvars['localhost']['lxc_human_admin_user'] | bool"
when: "hostvars['localhost']['create_human_admin_user'] | bool"