Closed chungeun-choi closed 10 months ago
Thank you very much for your contribution @chungeun-choi I will review it during the next few days!
@apenella Thank you for your reply! I'll be looking forward to your review!
@apenella Thanks for the feedback. It seems I missed a few things! I'll leave a comment again after I've made the necessary adjustments
@apenella HI!. I've completed all the tasks you requested and am leaving a comment. While checking, I noticed a few issues and made some modifications. Please refer to the content below!
--limit
flag functionality and adding test code for it.I apologize for overlooking this feature during development, as it seemed to be a less frequently used one
--vars
is not for inputting additional variables, but is used with the --graph
flag to show the variable values held by each Host.
-> As a result, the vaulted encryption process has been removed (related functions deleted, and this item is removed from the test code).
The placement of the 'pattern' was initially set at the end of the command, but this was causing problems in certain situations.
-> The placement of the 'pattern' value has been moved to follow right after DefaultAnsibleInventoryBinary
.
Improved an issue where certain option flags were being set to “nil”.
@chungeun-choi you did a great job with that contribution! Thanks so much!
@apenella I'm happy that what I've developed can be helpful!
Hello go-ansible Contributors!
This is chung-eun, discussing the inventory-related feature (#132). Our project urgently needed this functionality, so I went ahead and developed it.
I'm eager to contribute these developments to the go-ansible project, which is why I've submitted this PR. While I've based my work on the existing contribution guidelines and source code, please don't hesitate to leave comments if there are areas for improvement! ☺️
Inventory
ansibleInventoryOptions
: An object to create option flags for executing the ansible-inventory command.ansibleInventoryCmd
: The object that actually executes the ansible-inventory command.inventory_test.go
: A file containing test code to test the newly added features.Special Notes
ConnectionOptions
andPrivilegeEscalationOptions
have been excluded from the properties ofansibleInventoryCmd
.ansibleInventoryOptions
: This functionality has been developed based on the official ansible-inventory documentationI'm not entirely sure which branch this PR should be based on, so I've made the request against the master branch for now. If it needs to be changed, please let me know.