暗中观察

Ansible使用指南
一、基本概念二、安装2.1 安装pythonyum install python3 2.2 pip3 instal...
扫描右侧二维码阅读全文
04
2023/12

Ansible使用指南

一、基本概念
1.png

2.png

二、安装
2.1 安装python

yum install python3

2.2 pip3 install --user ansible

yum install -y epel-release
yum install -y ansible

三、使用
3.1 基础:运行命令

ansible -i ./hosts remote -v -m ping -u root --private-key=~/.ssh/id_rsa

3.2 剧本(Playbooks)

ansible-playbook -i ./hosts nginx.yml

四、文档
http://www.ansible.com.cn/index.html
https://blog.csdn.net/pushiqiang/article/details/78126063

Last modification:December 5th, 2023 at 10:10 pm
If you think my article is useful to you, please feel free to appreciate

One comment

  1. 暗中观察

    niubiOωO

Leave a Comment