From 8553a491196017a1b6422772e70f7abdb269d4a6 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Fri, 7 Jul 2023 04:08:43 +0000 Subject: [PATCH] doc: update `docs/ansible.md` (#391) 9680e2a113982b37ee802a2fddfc7876ad2c080c --- CONTRIBUTORS.svg | 100 +++++++++++++++++++++++----------------------- docs/ansible.html | 31 ++++++-------- index.html | 5 ++- 3 files changed, 68 insertions(+), 68 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index 2e3040c9..0591de17 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -106,103 +106,105 @@ + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/docs/ansible.html b/docs/ansible.html index f4fcf203..7a3229c8 100644 --- a/docs/ansible.html +++ b/docs/ansible.html @@ -60,7 +60,8 @@ -

配置位置

+

配置位置

+ @@ -82,24 +83,18 @@ - - - - - - - - - - - - -
文件路径说明
/etc/ansible/ansible.cfg系统范围的配置
~/ansible.cfg用户特定的配置
$pwd/ansible.cfg当前目录下的配置
ansible的缺省的配置文件:/etc/ansible/ansible.cfg
ansible配置文件优先级:
1.如果没有任何其他的ansible配置文件,默认使用/etc/ansible/ansible.cfg
-
2. ~/.ansible.cfg 家目录下的.ansible.cfg
-3. ./ansible.cfg 当前目录下的ansible.cfg ,即在同一目录下ansible.cfg优先级高于.ansible.cfg
-4.环境变量 exoport ANSIBLE_CONFIG=/$DIR/ansible.cfg
+
文件路径说明
/etc/ansible/ansible.cfg系统范围的配置
~/ansible.cfg用户特定的配置
$pwd/ansible.cfg当前目录下的配置
+

配置文件优先级

+
    +
  • 如果没有任何其他配置文件,默认使用 /etc/ansible/ansible.cfg
  • +
  • ~/.ansible.cfg 目录下的 .ansible.cfg
  • +
  • 当前目录下的 ansible.cfg,即在同一目录下 ansible.cfg 优先级高于 ~/.ansible.cfg
  • +
  • 环境变量 exoport ANSIBLE_CONFIG=/$DIR/ansible.cfg
  • +
+ +

查看正在使用的 ansible 配置文件:

+
ansible --version | grep "config file"
 
-

查看正在使用的ansible配置文件: ansible --version | grep "config file"

Inventory文件(hosts列表)

静态Inventory

/etc/ansible/hosts

diff --git a/index.html b/index.html index bf7dc214..e2cf5f23 100644 --- a/index.html +++ b/index.html @@ -1078,6 +1078,9 @@ 行者 + + + 都一样

贡献者列表,由 contributors 根据提交次数的先后顺序自动生成

@@ -1267,7 +1270,7 @@

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+