![]() |
Повар Гной Онлайн
21 июля 2022
|
кое-что есть
$ ansible-doc -t inventory -l | grep -i script script Executes an inventory script that returns JSON $ ansible-doc -t inventory script > SCRIPT (/usr/lib/ python3.7/ site-packages/ ansible/ plugins /inventory/script.py) The source provided must be an executable that returns Ansible inventory JSON The source must accept `--list' and `--host <hostname>' as arguments. `--host' will only be used if no `_meta' key is present. This is a performance optimization as the script would be called per host otherwise. [...] осталось найти примеры на этот плагин script. |