Skip to content
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

Merged
merged 5 commits into from
Apr 30, 2022
Merged

Config lab01 ansible #9

merged 5 commits into from
Apr 30, 2022

Conversation

martinliu
Copy link
Contributor

提交最后评审。

@seanly
Copy link
Contributor

seanly commented Apr 28, 2022

可以在目录名称上添加一个工具名称比如:lab01-ansible ,这样方便识别。

Copy link
Contributor

@seanly seanly left a 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) 上的安装过程,其中第四个步骤需要按实际情况修改。
Copy link
Contributor

@seanly seanly Apr 28, 2022

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`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一般我们不推荐这种安装方式,会统一 pip3 工具安装,并且锁定安装版本,因为不同版本差异还是比较大,有些语法会出现错误。

@martinliu martinliu merged commit cf8bde0 into main Apr 30, 2022
@martinliu martinliu self-assigned this May 7, 2022
@martinliu martinliu linked an issue May 24, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ansible] 人人都可以快速上手的Ansible入门指南
2 participants