You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inventories/
客戶1/
hosts # inventory file for production servers
group_vars/
group1.yml # here we assign variables to particular groups
group2.yml
host_vars/
hostname1.yml # here we assign variables to particular systems
hostname2.yml
客戶2/
hosts # inventory file for staging environment
group_vars/
group1.yml # here we assign variables to particular groups
group2.yml
host_vars/
stagehost1.yml # here we assign variables to particular systems
stagehost2.yml
library/
module_utils/
filter_plugins/
site.yml
webservers.yml
dbservers.yml
roles/
common/
webtier/
monitoring/
fooapp/
The text was updated successfully, but these errors were encountered:
最近在重構公司的 Ansible 目錄結構,參考了官方的 best practice:
https://docs.ansible.com/ansible/2.6/user_guide/playbooks_best_practices.html#content-organization
我本來的目錄主要是 (客戶有很多個):
在新架構下, files/ 這個該如何整理?
才能在 with_files 時,讓 Ansible task 可以找到檔案?
我可以直接放在新架構的 inventories/ 的客戶目錄下?
有沒有方法可以列出 Ansible 目前會讀取的目錄路徑?
重構結構:
The text was updated successfully, but these errors were encountered: