• 技术文章 >Python技术 >Python高级

    python中ansible是什么?

    十一十一2021-03-04 10:15:07原创3925

    本文教程操作环境:windows7系统、Python 3.9.1,DELL G3电脑。

    安装方式:

    pip install ansible

    ansible.cfg文件加载顺序

    读取顺序:

    1、环境变量

    2、当前执行目录

    3、~/.ansible.cfg

    4、/etc/ansible/ansible.cfg

    基于密码的方式连接

    [web]
    192.168.133.111
    192.168.133.112
    192.168.133.123
     
    [web:vars]
    ansible_ssh_user=root ansible_ssh_pass=123456

    常见命令:

    好啦,以上就是关于ansible的介绍了,感兴趣的小伙伴可以跟着小编一起来学习了解下了哦~

    专题推荐:ansible是什么
    品易云
    上一篇:如何使用python制作抽奖程序? 下一篇:python中elasticsearch是什么?

    相关文章推荐

    • python中的冒泡排序是什么?• python中的插入排序怎么用?

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网