Sunday Blog

人生是一场刻意练习

Ansible最佳实践

Ansible Best Practices

ansible https://docs.ansible.com/ Ansible优化 https://ansible.leops.cn/advanced/optimization/ Ansible Best Practices Ansible Best Practices inventories/ production/ 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 staging/ hosts # inventory file for staging environment group_vars/ group1.yml # here we assign variables to particular groups group2.yml host_vars/ stagehost1.yml

Ansible 常用模块使用

Ansible Common Modules Use

安装 CentOS/RHEL 在 CentOS 、RHEL、Alibaba Cloud Linux 等使用 RPM 包管理器的发行版中,可以使用 如下命令安装 Ansible: sudo yum install ansible Ubuntu 在 Ubuntu、Debian 等使用 DEB 包管