Inventory 常用内置参数


Inventory 常用内置参数

  • ansible_ssh_host: 定义host ssh地址 ansible_ssh_host=10.132.42.1.117

  • ansible_ssh_port: 定义hots ssh端口 snsible_ssh_port=3009

  • ansible_ssh_user: 定义hosts ssh 认证用户 ansible_ssh_user=michael

  • ansible_ssh_pass: 定义hosts ssh认证密码 ansible_ssh_pass=root123

  • ansible_duso: 定义hosts sudo的用户 ansible_sudo=michael

  • ansible_sdo_pass: 定义hosts sudo密码 ansible_sudo_pass="12345"

  • ansible_sudo_exe: 定义hosts duso 路径 ansible_sudo_exe=/usr/bin/sudo密码

  • ansible_ssh_private_key_file: 定义hosts私钥 ansible_ssh_private_key_file=/root/key

  • ansible_shell_type: 定义hosts shell类型 ansible_shell_type=bash

  • ansible_python_interpreter: 定义hosts任务执行python的路径 ansible_python_interpreter=/usr/bin/python2.6

  • ansible_interpreter: 定义hosts其他语言解析器路径 ansible_interpreter=/usr/bin/ruby

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • ansible 系统架构 ansible简介ansible是新出现的自动化运维工具,ansible是一个配置管理和...
    运维阿文阅读 13,247评论 1 53
  • 首先贴两个链接【Unity编辑器】Unity内置GUI风格和资源Unity3D研究院之系统内置系统图标大整理 这第...
    Gabo阅读 13,983评论 1 53
  • 曾经幼稚的认为努力应该适可而止,盘算着在短暂拼搏了一阵子后,便停下前行的脚步,嘴里还念叨着别把自己搞得那么累...
    豪甯爸爸阅读 3,604评论 1 4
  • 乐小嘴儿13天哒,手忙脚乱的姥姥爸爸妈妈终于捋顺了气,打算给嘴嘴儿小朋友尝试一下具有悠久历史、浓厚民族风情、深厚文...
    给你们_乐乐与开心阅读 2,187评论 0 1

友情链接更多精彩内容