ansible

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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.
  10. 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...
  11. G

    reboot multiple lxc on multiple nodes via ansible at the same time

    Hi there, I am using ansible to control and configure proxmox cluster. When restarting multiple lxc on multiple nodes its doing one by one not at the same time. Is it possible for ansible to reboot multiple lxc at the same time? Not sure its right forum to ask ansible question but thanks in...
  12. D

    regenerate cloud init image using ansible

    Hi, I want to deploy from a Proxmox Host a VM that is convertet to a template to clone other VMs out of these. the Templating role works fine but if i clone the template with ansible, starting the VM and want to sign in the preset login combi don´t work, but if i click on the "Regenerate Image"...
  13. R

    Ansible 'Operation not permitted' copying ssl keys directly

    I've got as far as working out that /etc/pve is a fuse mount and that I should use the gui to replace the certs (although it would be nice to automate this) So, more for my leaning, is there a better way to copy these into place through ansible that I'm missing please? Or what am I missing here...
  14. S

    ansible LXC creation

    Heyo, playing with ansibles community.general.proxmox modul. Trying to create simples LXC: --- - hosts: localhost tasks: - name: Create new LXC community.general.proxmox: node: "my node" api_user: "my user" api_token_id: "my id" api_token_secret: "my token"...
  15. S

    Ansible community.general.proxmox: can't create containers

    Has anyone successfully used this module? I have tried to follow the directions here and appear to be stuck on something stupid: https://docs.ansible.com/ansible/latest/collections/community/general/proxmox_module.html I have installed the module via ansible-galaxy. As far as I can tell the...
  16. florian-n

    [SOLVED] Cloud-init isn't applied after linked clone of template via API

    Hi, currently we're trying to create template based clones using Ansible's community.general.proxmox_kvm. To make the clones configurable we stick with cloud-init. We are building the template using a hand rolled Packer configuration which deploys fine (locally as well as in our production...
  17. U

    [SOLVED] Trying to automate the creation of virtual machines using ansible; "authorization on proxmox cluster failed with exception"

    This is my ansible playbook: --- - hosts: gluster-test become: true tasks: - name: Create new VM with minimal options community.general.proxmox_kvm: proxmox_default_behavior: 'no_defaults' api_user: 'root@pam' api_password: 'blahblahblah' api_host...
  18. M

    Pass cloud-init without access to proxmox machine

    Hi, I encounter some issue when I tried to find a way, to pass cloud-init to machine with ansible and connect to API. Actually I using this ansible module: https://docs.ansible.com/ansible/2.3/proxmox_kvm_module.html There are my tasks: --- - name: "Clone CentOS" proxmox_kvm...
  19. N

    Ansible Fatal Error: "authorization on proxmox cluster failed with exception: URL has an invalid label."

    Hello Proxmox Community, i am currently trying to configure Ansible on one of my proxmox hosts to make kvm-deployment a little easier. I installed Ansible via apt and "proxmoxer" and "requests" via pip. When i try to execute my playbook i get the following error: fatal: [proxmox3]: FAILED...
  20. A

    Specify default gateway when using two netif in Ubuntu 20.04 LXC container

    Hi everyone I'm trying to create a container with Ansible using proxmox API My LXC container network configuration looks like this when the container is created int /etc/pve/lxc/$vmid.conf : net0: name=eth0,bridge=vmbr0,gw=192.168.1.1,hwaddr=FA:6E:B3:F4:D6:61,ip=192.168.1.121/25,type=veth net1...

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!