-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config lab01 ansible #9
Conversation
可以在目录名称上添加一个工具名称比如:lab01-ansible ,这样方便识别。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
主要在工具安装上,需要明确演示时使用的版本。
* app1 : 192.168.31.165 | ||
* app2 :192.168.31.124 | ||
* db :192.168.31.58 | ||
|
||
### 1.1 在 macOS 上安装【开发环境】 | ||
|
||
下面是在操作系统版本 macOS 12.3 (21E230) 上的安装过程,其中第四个步骤需要按实际情况修改。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下面的这句话 export PATH="$PATH:/Users/martinliu/Library/Python/3.8/bin"
,不同的用户路径不一样,不同的安装工具安装路径不一样,可以写一下您使用的安装工具
@@ -57,15 +69,20 @@ Ansible 最简化架构图: | |||
|
|||
#### 用 dnf 安装 | |||
|
|||
在 Master (controler)上安装部署 Ansble 工具集。 | |||
|
|||
步骤如下: | |||
|
|||
1. 运行命令 `dnf install ansible -y` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一般我们不推荐这种安装方式,会统一 pip3 工具安装,并且锁定安装版本,因为不同版本差异还是比较大,有些语法会出现错误。
提交最后评审。