1. 目录结构
The Ansible directory structure plays a role too.
- The
ping
module lives inside/etc/ansible/ansible_plugins/modules/
, where all modules reside. - Ansible stores key configurations in
ansible.cfg
and manages hosts viahosts.ini
under theinventory
directory. - Once you run the ping module, Ansible references this structure, ensuring the configuration and host details are in place.