✨ New Feature request - compatibility with CentOS templates
LUDUS allows to build templates that are accepted by the server to create range a configuration.
CentOS templates build well and the conditions as documented in Ludus Documentation are met. During a range deployement, the CentOS template first gets an IP from DHCP and then it is reconfigured for his definitive IP.
Problem : The definitive IP cannot be set currently.
TASK [Gathering Facts] *********************************************************
fatal: [centos7.8]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo /home/ludus/.ansible/tmp `\"&& mkdir \"` echo /home/ludus/.ansible/tmp/ansible-tmp-1745084720.0417218-447455-107511104869431 `\" && echo ansible-tmp-1745084720.0417218-447455-107511104869431=\"` echo /home/ludus/.ansible/tmp/ansible-tmp-1745084720.0417218-447455-107511104869431 `\" ), exited with result 1", "unreachable": true}
fatal: [centos8]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo /home/ludus/.ansible/tmp `\"&& mkdir \"` echo /home/ludus/.ansible/tmp/ansible-tmp-1745084720.0447068-447456-13469445416478 `\" && echo ansible-tmp-1745084720.0447068-447456-13469445416478=\"` echo /home/ludus/.ansible/tmp/ansible-tmp-1745084720.0447068-447456-13469445416478 `\" ), exited with result 1", "unreachable": true}
Result :
- IPs stay configured with DHCP
ludus range list
+---------+---------------+------------------+---------------+-------------------+-----------------+
| USER ID | RANGE NETWORK | LAST DEPLOYMENT | NUMBER OF VMS | DEPLOYMENT STATUS | TESTING ENABLED |
+---------+---------------+------------------+---------------+-------------------+-----------------+
| bob | 10.3.0.0/16 | 2025-04-21 14:12 | 12 | ERROR | FALSE |
+---------+---------------+------------------+---------------+-------------------+-----------------+
+------------+----------------------------+-------+-------------+
| PROXMOX ID | VM NAME | POWER | IP |
+------------+----------------------------+-------+-------------+
| 110 | bob-router-debian11-x64 | On | 10.3.10.254 |
| 111 | centos7.8 | On | 10.3.20.148 |
| 112 | centos8 | On | 10.3.20.198 |
+------------+----------------------------+-------+-------------+