feat(pb,role,task): makes VM deployment playbook use new validation pre_tasks, become_method and os_template tasks are shared now
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
api_token_id: ansible
|
||||
api_token_secret: "{{ proxmox_token_secret }}"
|
||||
|
||||
clone: "{{ vm_os_template }}-cloud-init-template"
|
||||
name: "{{ vm_hostname }}"
|
||||
clone: "{{ guest_os_template }}-cloud-init-template"
|
||||
name: "{{ guest_hostname }}"
|
||||
storage: main
|
||||
format: qcow2
|
||||
full: true
|
||||
@@ -33,7 +33,7 @@
|
||||
api_token_id: ansible
|
||||
api_token_secret: "{{ proxmox_token_secret }}"
|
||||
|
||||
name: "{{ vm_hostname }}"
|
||||
name: "{{ guest_hostname }}"
|
||||
# Cloud-init parameters
|
||||
update: true
|
||||
ide:
|
||||
@@ -41,7 +41,7 @@
|
||||
ciuser: "ansible"
|
||||
cipassword: "{{ ansible_become_passwd }}"
|
||||
ipconfig:
|
||||
ipconfig0: "ip={{ vm_ip_address }},gw=192.168.0.1"
|
||||
ipconfig0: "ip={{ guest_ip_address }}/{{ guest_netmask }},gw=192.168.0.1"
|
||||
|
||||
- name: Tweak the hardware settings
|
||||
become: false
|
||||
@@ -53,7 +53,7 @@
|
||||
api_token_id: ansible
|
||||
api_token_secret: "{{ proxmox_token_secret }}"
|
||||
|
||||
name: "{{ vm_hostname }}"
|
||||
name: "{{ guest_hostname }}"
|
||||
cores: 4
|
||||
memory: 4096 # Minimal value for debian based OS for smooth workflow
|
||||
update: true
|
||||
@@ -68,5 +68,5 @@
|
||||
api_token_id: ansible
|
||||
api_token_secret: "{{ proxmox_token_secret }}"
|
||||
|
||||
name: "{{ vm_hostname }}"
|
||||
name: "{{ guest_hostname }}"
|
||||
state: started
|
||||
|
||||
Reference in New Issue
Block a user