美文网首页
Ansible 使用笔记

Ansible 使用笔记

作者: 我是柯南 | 来源:发表于2016-11-01 12:56 被阅读48次

官方资料

官方网站 https://www.ansible.com/
官方文档 https://docs.ansible.com/ansible/index.html

Ubuntu 安装 Ansible

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

基础概念

  • Inventory (清单),即文件/etc/ansible/hosts,用于分组存储要管理的目标主机
  • ansible默认使用ssh同被管理主机通讯,默认使用SFTP传输文件
  • ansible命令默认模块为bash,如果要指定不同的模块使用参数-m module例如:ansible all -m ping使用的是ping模块

传输文件

管理软件包

相关文章

网友评论

      本文标题:Ansible 使用笔记

      本文链接:https://www.haomeiwen.com/subject/rbsiyttx.html