diff --git a/create_vm.yaml b/create_vm.yaml index 4c213d8..d153b32 100644 --- a/create_vm.yaml +++ b/create_vm.yaml @@ -2,7 +2,7 @@ - name: Настройка окружения hosts: proxmox vars_files: - - vars.yml + - vars.yaml tasks: - name: Создание и настройка ВМ из шаблона @@ -11,10 +11,10 @@ community.general.proxmox_kvm: api_user: "{{ pve_user }}" api_password: "{{ pve_password }}" - api_host: pve + api_host: "{{ pve_node }}" clone: "{{ pve_template_name }}" vmid: "{{ pve_template_id }}" - newid: 152 + newid: "{{ vm_id }}" name: "{{ vm_name }}" node: "{{ pve_node }}" storage: "{{ pve_storage }}" diff --git a/vars.yaml b/vars.yaml index 415123a..d36e79a 100644 --- a/vars.yaml +++ b/vars.yaml @@ -1,4 +1,4 @@ -pve_node: pve +pve_node: 192.168.13.9 pve_user: root@pam pve_password: KatIrina1 pve_template_name: ubuntu-2004-cloudinit-template