• ansible yum 模块 安装 vsftp


    [root@ftp:/root]
    > ansible ansible01 -u root -k -m yum -a 'name=vsftpd state=latest'
    SSH password: 
    ansible01 | CHANGED => {
        "ansible_facts": {
            "pkg_mgr": "yum"
        }, 
        "changed": true, 
        "msg": "", 
        "obsoletes": {
            "grub2": {
                "dist": "x86_64", 
                "repo": "@anaconda", 
                "version": "1:2.02-0.64.el7.centos"
            }, 
            "grub2-tools": {
                "dist": "x86_64", 
                "repo": "@anaconda", 
                "version": "1:2.02-0.64.el7.centos"
            }
        }, 
        "rc": 0, 
        "results": [
            "Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
     * base: mirrors.shu.edu.cn
     * epel: mirrors.yun-idc.com
     * extras: mirrors.cn99.com
     * updates: mirrors.163.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package vsftpd.x86_64 0:3.0.2-25.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package          Arch             Version                 Repository      Size
    ================================================================================
    Installing:
     vsftpd           x86_64           3.0.2-25.el7            base           171 k
    
    Transaction Summary
    ================================================================================
    Install  1 Package
    
    Total download size: 171 k
    Installed size: 353 k
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : vsftpd-3.0.2-25.el7.x86_64                                   1/1 
      Verifying  : vsftpd-3.0.2-25.el7.x86_64                                   1/1 
    
    Installed:
      vsftpd.x86_64 0:3.0.2-25.el7                                                  
    
    Complete!
    "
        ]
    }
    
    [root@ftp:/root]
    > ansible ansible01 -u root -k -m yum -a 'name=vsftpd state=latest'
    SSH password: 
    ansible01 | SUCCESS => {
        "ansible_facts": {
            "pkg_mgr": "yum"
        }, 
        "changed": false, 
        "msg": "", 
        "obsoletes": {
            "grub2": {
                "dist": "x86_64", 
                "repo": "@anaconda", 
                "version": "1:2.02-0.64.el7.centos"
            }, 
            "grub2-tools": {
                "dist": "x86_64", 
                "repo": "@anaconda", 
                "version": "1:2.02-0.64.el7.centos"
            }
        }, 
        "rc": 0, 
        "results": [
            "All packages providing vsftpd are up to date", 
            ""
        ]
    }
    
    [root@ftp:/root]
    > 
  • 相关阅读:
    很好用的DBHelper类
    .net连接SAP的几种方式
    使用API管理平台的优势
    ASP.NET 2.0中的登陆控件简介
    asp.net 1.1/ 2.0 中快速实现单点登陆
    ASP.NET 2.0 成员资格和角色管理授权
    SqlDataSource 调用带参数的存储过程
    Asp.net中基于Forms验证的角色验证授权
    解释:ASP.NET 2.0 中的窗体身份验证
    SQL JOIN 的用法
  • 原文地址:https://www.cnblogs.com/liweiming/p/10547492.html
Copyright © 2020-2023  润新知