You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,34 @@ The following dependencies have to be fulfiled by the Ansible controller.
51
51
* ipaddress
52
52
* phpypam>=1.0.0
53
53
54
+
## Compatibility notice
55
+
56
+
To ensure `phpipam-ansible-modules` work correctly with phpIPAM versions 1.7 and above, you need to modify the phpIPAM configuration to stringify API results. This is crucial because newer phpIPAM versions might return numerical values directly, which the Ansible modules might expect as strings.
57
+
58
+
Here's how to implement the workaround:
59
+
60
+
**1. Modify phpIPAM Configuration**
61
+
62
+
You need to set the `api_stringify_results` variable to `true` in your phpIPAM configuration. This change should be made in the `config.php` file, which is typically located in the phpIPAM installation directory (e.g., `/var/www/html/phpipam/config.php` or `/var/www/phpipam/config.php`).
63
+
64
+
Add or modify the following line in your `config.php` file:
65
+
66
+
```
67
+
<?php
68
+
/*
69
+
* phpIPAM config.php
70
+
*
71
+
* ... existing configuration ...
72
+
*/
73
+
74
+
// Required for Ansible modules with phpIPAM v1.7 and above
75
+
$api_stringify_results = true;
76
+
77
+
/*
78
+
* ... rest of your configuration ...
79
+
*/
80
+
?>
81
+
```
54
82
## Need help?
55
83
56
84
If you’ve found any issues in this release please head over to github and open a bug so we can take a look.
0 commit comments