Replies: 3 comments
-
|
I will have to look at the code but my guess is that |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your answer, this was the hint i needed. I've added - name: Updating NetBox
delegate_to: localhost
become: false
netbox.netbox.netbox_virtual_machine:
netbox_url: '{{ hostvars["localhost"].netbox_url }}'
netbox_token: '{{ hostvars["localhost"].netbox_token }}'
query_params:
- name
data:
name: '{{ inventory_hostname }}'
vcpus: '{{ vcpus | int }}'
memory: '{{ mem_mib | int }}'
disk: '{{ disk_gib | int }}'
cluster: '{{ _kvm_host }}'
state: presentThe question is if this is the intended default behaviour and if it makes sense to change that. This behaviour is probably not very obvious to most of the users. I think we should at least mention such things somewhere in the documentation. |
Beta Was this translation helpful? Give feedback.
-
|
This behavior matches what I have seen with other modules where I have transferred this to a discussion in the hopes that if someone runs across this, they will find this. I am also fine with adding more documentation around |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ansible NetBox Collection version
v3.14.0
Ansible version
NetBox version
v3.5.1
Python version
3.9
Steps to Reproduce
We wanted to move an existing virtual machines to a different cluster. The task looks like this:
Expected Behavior
Move the existing VM to a different cluster.
Observed Behavior
A new VM with the exact same name and the given data is created on the given cluster.
Beta Was this translation helpful? Give feedback.
All reactions