zoukankan      html  css  js  c++  java
  • ansible(安装)


    Ansible是python中的一套模块,系统中的一套自动化工具,可以用来作系统管理、自动化命令等任务
    Ansible是python中的一套完整的自动化执行任务模块
    ansible的play_book模式,采用yaml配置,对于自动化模块执行一目了然
    自动化场景支持丰富

    ansible安装

    1.通过系统的方式,yum、apt-get
    2.通过python的方式安装

    #推荐
    python ./setup.py
    easy_install ansible
    pip install ansible
    

    下载安装ansible

    wget https://github.com/ansible/ansible/archive/v2.4.1.0-0.4.rc2.tar.gz
    tar xf v2.4.1.0-0.4.rc2.tar.gz
    cd ansible-2.4.1.0-0.4.rc2
    python ./setup.py install
    

    检查是否安装ansible

    [root@iZj6cf244ucbfj060qys19Z ansible-2.4.1.0-0.4.rc2]# which ansible
    /usr/bin/ansible
    [root@iZj6cf244ucbfj060qys19Z ansible-2.4.1.0-0.4.rc2]# python -c "import ansible"
    

    No package 'libffi' found

    解决方法

    yum install -y libffi libffi-devel
    
  • 相关阅读:
    SQL Server 存储过程
    String.format Tutorial
    第五次
    第四次
    第三次
    第一次作业
    第二次
    c/c++
    HelloWorld出现的问题
    Android系统架构
  • 原文地址:https://www.cnblogs.com/anyux/p/11979725.html
Copyright © 2011-2022 走看看