i am new to ansible source code , but i found that add_host.py there is no code . i do not know why
Youâre looking at the module, but the actual code is an action plugin: lib/ansible/plugins/action/add_host.py
The add_host âmoduleâ and similar modules are actually âactionâ plugins since they should only run on the controller, not any inventory host.
3 Likes