Adding multiples ansible roles, playbooks and inventory
This commit is contained in:
17
roles/proxmox/tasks/ct_create.yml
Normal file
17
roles/proxmox/tasks/ct_create.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Create new container
|
||||
community.general.proxmox:
|
||||
node: "{{ proxmox_node }}"
|
||||
api_host: "{{ proxmox_api_host }}"
|
||||
api_user: "{{ proxmox_api_user }}"
|
||||
api_password: "{{ proxmox_api_password }}"
|
||||
hostname: "{{ proxmox_ct_create_hostname }}"
|
||||
pubkey: "{{ proxmox_ct_create_pubkey }}"
|
||||
ostemplate: "{{ proxmox_ct_create_ostemplate }}"
|
||||
cores: 2
|
||||
memory: "{{ proxmox_ct_create_ram }}"
|
||||
swap: "{{ proxmox_ct_create_swap}}"
|
||||
netif: "{{ proxmox_ct_create_net_config }}"
|
||||
vmid: "{{ proxmox_ct_create_vmid | default(999999) }}"
|
||||
tags: "{{ proxmox_ct_create_tags}}"
|
||||
...
|
||||
Reference in New Issue
Block a user