ansible

  1. F

    Proxmox Automation with Packer/Ansible/Kestra

    Hello! I want to share a small home project I’ve been working on for the past few months. I was looking for solutions for a certain implementation for packer and ansible on the forum, but I couldn’t find it here or in any GitHub repos. I used Packer for template creation because it gives a...
  2. M

    Ansible direct connection to containers using PVE as a proxy

    I'm using Ansible to connect to containers and VM's via SSH, but I'm wondering if there is a better way to do it using PVE as a proxy, given there are tools such as pct exec, pct enter, and pct console that allow Proxmox to send commands directly to the containers. This would allow to connect to...
  3. M

    python3-lxc and other lxc related packages conflicting with liblxc1

    In order to get Ansible lxc-container module to work on PVE, I'm trying to install python3-lxc, but it is conflicting with liblxc1. There are other reports of lxc related packages, such as lxc-templates, and others conflicting with the same library, but I could not find a solution. Am I missing...
  4. W

    Automate vm build with bitbucket

    Hi all, bit of a weird one in terms of direction with this issue but that's what I need help with, the direction. I'm using a Proxmox node (love it) just started using Cloud init and VM templates more. I'm getting a bit overwhelmed with what to do about automation in regards to deploying using...
  5. R

    TASK ERROR: can't lock file '/run/lock/lxc/pve-config-100.lock' - got timeout

    Hi! I've been facing the above mentioned error (check the tread title) for the past few days and I've got no solution yet. The error appears every single time I create & start a new LXC using OpenTofu and Ansible from a remote machine (using Debian through WSL). Actually OpenTofu doesn't...
  6. M

    Tags permission

    Hello, I was just curious about the strange permissions for tags: With the VM.Config.Options permission on /vms, one can add any tags they want, except the registered ones. No matter the individual configuration of registered ones. This setting can only be restricted more, not less. So, for...
  7. H

    Discussion: Proxmox + Ansible = Awesomeness

    Hey guys, i am an ansible enthusisast and would like to start a discussion on your usecase and my usecase regarding ansible. I am not an ansible expert but I love utilizing ansible as much as possible. Maybe I can get some ideas and you can get some ideas from me. So here it is: I have a vm...
  8. I

    Ansible lxc reboot

    i am trying to reboot lxc host as part of an ansible script , however i cannot make it work using ansible, default reboot module did not work: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/reboot_module.html it printed Socket exception: Connection reset by peer (104) and...
  9. J

    Where can I put a .qcow2 image so that non-root users can use it to create a VM?

    My end goal is for a non-root user to import a .qcow2 image in order to create a VM as part of a CI/CD pipeline. I'm currently trying to use the Ansible proxmox_kvm module. Unsurprisingly, I'm hitting the following error due to permissions issues: $ ansible-playbook -i inventory.yaml...
  10. powersupport

    Ansible and Proxmox to work together in CICD stack

    I would like to ask if there is any possibility for Ansible and Proxmox to work together in CICD stack?
  11. 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...
  12. 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.
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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
  18. 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...
  19. 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...
  20. 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...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!