ansible

  1. M

    Automatische Installation Proxmox auf Debian mit preseed und Automatische Gitlab Installation

    Hi Community, Ich habe mal mir mal die Mühe gemacht und ein bissel gebastelt. Dabei herausgekommen ist ein Git Repository, mit dem man Debian mit einem USB-Stick per preseed Datei automatisch installieren kann und danach per Ansible Proxmox installiert...
  2. F

    Proxmox with Terraform and Ansible

    Hi. Im trying to use Terraform to build VMs on proxmox and config them with Ansible. Does someone have a sample code or playbooks for ansible. I have some stuggels getting everything together. Hopefully someone can help me.
  3. P

    Creating cloud images using Ansible fails while the same commands work in the shell

    I also asked in stackoverflow, but trying here. I am updating my Ansible PVE deployment to create cloud image templates. I have a working shell script, and I just converted the commands to an Ansible "shell" command, the results are weird, sometimes working, sometimes not, sometimes I end up...
  4. T

    How to edit /etc/network/interfaces (with Ansible) correctly

    Hello Proxmox community, I'm currently trying to manage network interfaces in Proxmox VE using Ansible, and I'm running into a problem where the changes I make don't persist as I would expect. I have read the official Proxmox documentation and am aware that Proxmox VE does not write changes...
  5. S

    [SOLVED] Clone VM & add network interface with Ansible

    Hello community, I'm bashing my head against the wall with this one, so hopefully someone will be able to provide some guidance. Problem statement: I have an exiting rocky-linux template that I would like to clone. At clone time I would also like to create a network interface on the newly...
  6. M

    Stop and delete VM with Ansible

    Hi, I have a problem with stopping and deleting a VM with Ansible (community.general.proxmox_kvm module). When I stop a VM, the state of the VM is immediately "stopped", although the VM is not yet shut down. Thus I cannot delete the VM in the next step. I have to wait some time. Is there...
  7. T

    Ansible provisioning support?

    Hey PVE Staff and Users, Are there future (or current) plans to deploy PVE using Ansible? There are official scripts for Xen, VMWare, and RedHat on HPE Systems for example. https://github.com/ansible-provisioning/ansible-provisioning/blob/master/README.md Thanks, Tmanok
  8. C

    [TUTORIAL] 500 Internal Server Error: mount points configured, but 'rootfs' not set - aborting

    Dear All, I'm new in proxmox 7.4-3. I deploy automation in ansible. Everything is fine, ct is creating, but when i add "mounts:" : mounts: '{"mp0":"local:8,mp=/mnt/test/"}' i see the following error: fatal: [192.168.122.63]: FAILED! => {"changed": false, "msg": "Creation of lxc VM 205...
  9. C

    Proxmox Cluster Beitritt mit einem Ansible Skript

    Hallo Proxmoxer, ich habe seit Wochen folgenden Problem. Ich habe ein Ansible Skript genaut welches einen oder mehrere Hetzner Server komplett einrichtet. Proxmox ist nachdem das Skript durchgelaufen ist mit seinen Basics eingerichtet und erreichbar. Jetzt stehe ich vor dem Problem das ich mit...
  10. D

    [SOLVED] Unable to clone VM across Nodes with ansible script

    Hello I am new to Proxmox and don't know a lot about it tbh. I was able to clone VMs from one storage to another storage on one Node with my ansible script as well as just clone it to the same storage. I tried the same but it does not work; let's say from Node1 to Node2 I have a shared storage...
  11. J

    [SOLVED] Proxmox VE API: provision LXC with two network interfaces

    Hello everyone! I am using the community.general.proxmox Ansible module to provision LinuX Containers into my Proxmox 7 cluster. At the moment I am using this value for the netif option: netif: {'net0':'name={{ proxmox_net_iface }},bridge={{ proxmox_net_bridge }},firewall=1,ip={{ ansible_host...
  12. tbjers

    How do I keep the subscription server ID the same after reinstalling PVE on a machine?

    I am using Ansible to provision and deploy PVE to my bare-metal servers in my home lab. This works great, although I noticed that the Server ID changes with each new OS installation, even when the hardware is exactly the same. Is there a way to keep the server ID the same for each machine...
  13. J

    How to configure the firewall of an LXC via Ansible module proxmox?

    Good day everyone! I am trying to provision some LXC in my 4-node Proxmox 7.2 cluster via Ansible using the proxmox module. After much struggle I've been able to provision the container but I am stuck at the firewall configuration. Currently I am trying to template a firewall.j2 file into a...
  14. N

    ansible - snapshot container with mount points

    I've recently opened a PR which adds the functionality to the ansible.community.proxmox_snap module. The module can now be used with a unbind option, which allows to take snapshots of LXC containers regardless of them having configured mount points. This simple task is achieved by "toggling" the...
  15. D

    tagging Users & VM's to resource pools with ansible

    HI all am trying to see how I can create and assign users/groups/VMS resource pools so that the pools can be used to control access to the consoles of the machines. Looks like I can add machines to a pool but nothing about the same for users. looking at the current modules it doesn't look to be...
  16. C

    Problems cloning from template with ansible

    Hello there Proxmox Community! I registered because I am stuck with my management of Proxmox VMs with the ansible proxmox_kvm module. What I want to achieve: I want to be able to create a new vm based on a template vm. I am trying to use the clone feature to achieve that with the following...
  17. I

    Roadmap for integration with Ansible

    As far as I can see, Proxmox VE is currently only partially configurable through community provided Ansible modules. (See below) Inventory Plugins: proxmox Modules: proxmox proxmox_domain_info proxmox_group_info proxmox_kvm proxmox_nic proxmox_snap proxmox_storage_info proxmox_tasks_info...
  18. D

    Unable to create LXC via API PVE 7.1-8

    More details in this Github issue: https://github.com/ansible-collections/community.general/issues/3956 I am unable to create an LXC container in v7 via the API if I use the rootfs option to specify the disk size. If I omit the rootfs option, the container is created successfully. I have tried...
  19. M

    Issue with community.general.proxmox (Ansible)

    Is anyone else having issues with the community module for Ansible? Seems broken. I've logged a bug here would love to hear from the community if anyone else is experiencing this and has a fix.
  20. gareththered

    [SOLVED] Resize Disk with Ansible

    I'm not sure if this is an Ansible, or a Proxmox question, but I've got to start somewhere... I can create and/or clone a QEMU VM in Proxmox using Ansible's community.general.proxmox_kvm module. However, that module's documentation specifically states that it cannot resize a disk. I therefore...