forked from saratov/infra
roles/pve/tasks/{create_vm,destroy_vm,enable_vlans}: Rename node srv to pve
This commit is contained in:
parent
4ddaabf402
commit
34de85486e
@ -7,7 +7,7 @@
|
||||
|
||||
- name: "[{{vm_name}}] clone VM"
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
- name: "[{{vm_name}}] get VM state"
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
@ -54,7 +54,7 @@
|
||||
|
||||
- name: "[{{vm_name}}] configure VM"
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
@ -80,7 +80,7 @@
|
||||
|
||||
- name: "[{{vm_name}}] start VM"
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
- name: checking that vm exists
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
@ -17,7 +17,7 @@
|
||||
- block:
|
||||
- name: stopping vm
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
@ -27,7 +27,7 @@
|
||||
timeout: "{{ kvm_timeout }}"
|
||||
- name: destroying vm
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
- name: "[{{vm_name}}] enable all VLANs"
|
||||
proxmox_kvm:
|
||||
node: srv
|
||||
node: pve
|
||||
api_user: "{{env.pve.username}}"
|
||||
api_password: "{{env.pve.password}}"
|
||||
api_host: "{{env.pve.api_url}}"
|
||||
|
Loading…
Reference in New Issue
Block a user