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.
2 Likes