Skip to content

1. 目录结构

The Ansible directory structure plays a role too.

img

  • The ping module lives inside /etc/ansible/ansible_plugins/modules/, where all modules reside.
  • Ansible stores key configurations in ansible.cfg and manages hosts via hosts.ini under the inventory directory.
  • Once you run the ping module, Ansible references this structure, ensuring the configuration and host details are in place.

image-20250719220256830

2. 项目目录结构

20250719220637845