FIX: roles naming style changed
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
---
|
||||
|
||||
- name: Create new container with minimal options defining network interface with static ip
|
||||
become: no
|
||||
community.proxmox.proxmox:
|
||||
node: proxmox-server
|
||||
api_user: root@pam
|
||||
api_host: 192.168.0.2
|
||||
api_token_id: ansible
|
||||
api_token_secret: "{{ proxmox_token_secret }}"
|
||||
|
||||
vmid: 1040
|
||||
password: ansible-test
|
||||
hostname: "ansible-test"
|
||||
ostemplate: 'main:vztmpl/debian-13-standard_13.1-2_amd64.tar.zst'
|
||||
memory: 2048
|
||||
cores: 5
|
||||
state: present
|
||||
disk_volume:
|
||||
size: 2 # 2GB rootfs
|
||||
storage: local
|
||||
pubkey: "{{ lookup('file', lookup('env','HOME') + '/.ssh/ansible_key.pub') }}"
|
||||
netif:
|
||||
net0: "name=eth0,gw=192.168.0.1,ip=192.168.0.40/24,bridge=vmbr0"
|
||||
|
||||
- name: Make sure the container has started
|
||||
become: no
|
||||
community.proxmox.proxmox:
|
||||
node: proxmox-server
|
||||
api_user: root@pam
|
||||
api_host: 192.168.0.2
|
||||
api_token_id: ansible
|
||||
api_token_secret: "{{ proxmox_token_secret }}"
|
||||
|
||||
vmid: 1040
|
||||
state: started
|
||||
Reference in New Issue
Block a user