Closed sebdanielsson closed 1 week ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @Ajpantuso @Thulium-Drake @helldorado @joshainglis @karmab @tleguern click here for bot help
My current workaround is to separate the tasks like this:
- name: Clone fedora_template to mediaserver-101
community.general.proxmox_kvm:
api_user: "{{ lookup('community.general.onepassword', 'ansible_test', field='username', vault='Private') }}@pam"
api_password: "{{ lookup('community.general.onepassword', 'ansible_test', field='password', vault='Private') }}"
api_host: ansible_test
node: hogsmeade
clone: fedora_template
full: true
vmid: 1000
newid: 101
name: ansible-test
timeout: 300
state: present
- name: Update mediaserver-101 with ci-info
community.general.proxmox_kvm:
api_user: "{{ lookup('community.general.onepassword', 'ansible_test', field='username', vault='Private') }}@pam"
api_password: "{{ lookup('community.general.onepassword', 'ansible_test', field='password', vault='Private') }}"
api_host: ansible_test
node: hogsmeade
vmid: 101
ciuser: "{{ lookup('community.general.onepassword', 'mediaserver', field='username', vault='Private') }}"
cipassword: "{{ lookup('community.general.onepassword', 'mediaserver', field='password', vault='Private') }}"
sshkeys: "{{ lookup('community.general.onepassword', 'Sebastian SSH Key', field='public key', vault='Private') }}"
protection: true
update: true
state: present
cc @UnderGreen click here for bot help
@sebdanielsson proxmox_kvm module uses API call from screenshot to clone VM and ci* params are not valid for it.
That’s unfortunate. Thanks for the answer!☺️
cc @krauthosting click here for bot help
Summary
I tried to create a full clone of a template and set ci_user, ci_password and ci_sshkey but none of the values was set.
Issue Type
Bug Report
Component Name
proxmox_kvm
Ansible Version
Community.general Version
Configuration
OS / Environment
Target OS: Proxmox 7.3-3
Steps to Reproduce
Expected Results
The clone should be configured with the three cloud-init options.
Actual Results
The VM is created but without the cloud-init options.
Code of Conduct