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
+3 -3
View File
@@ -12,7 +12,7 @@
cmode: "shell"
password: "{{ lxc_root_password }}"
hostname: "{{ lxc_hostname }}"
hostname: "{{ guest_hostname }}"
ostemplate: 'main:vztmpl/debian-13-golden-image.tar.gz'
unprivileged: "{{ lxc_privileged }}"
memory: 2048
@@ -26,7 +26,7 @@
storage: local
pubkey: "{{ lookup('file', lookup('env', 'HOME') + '/.ssh/ansible_key.pub') }}"
netif:
net0: "name=eth0,gw=192.168.0.1,ip={{ lxc_ip_address }}/{{ lxc_netmask }},bridge=vmbr0"
net0: "name=eth0,gw=192.168.0.1,ip={{ guest_ip_address }}/{{ guest_netmask }},bridge=vmbr0"
- name: Make sure the container has started
become: false
@@ -38,7 +38,7 @@
api_token_id: ansible
api_token_secret: "{{ proxmox_token_secret }}"
hostname: "{{ lxc_hostname }}"
hostname: "{{ guest_hostname }}"
state: started
retries: 3
delay: 15