zoukankan      html  css  js  c++  java
  • ansible shell模块

    [root@ftp:/root]
    > ansible ansible01  -u root -k -m shell -a 'hostname'
    SSH password: 
    ansible01 | CHANGED | rc=0 >>
    ansible01
    [root@ftp:/root]
    > ansible ansible01  -u root -k -m shell -a 'uptime'
    SSH password: 
    ansible01 | CHANGED | rc=0 >>
     16:11:53 up  2:49,  2 users,  load average: 0.00, 0.01, 0.05
    [root@ftp:/root]
    > ansible ansible01  -u root -k -m shell -a 'free -m'
    SSH password: 
    ansible01 | CHANGED | rc=0 >>
                  total        used        free      shared  buff/cache   available
    Mem:           1839         119        1259           8         460        1525
    Swap:          1023           0        1023
  • 相关阅读:
    用户反馈
    Alpha版本测试报告
    Alpha Scrum7
    #Alpha Scrum6
    Alpha Scrum5
    #Alpha Scrum4
    Alpha Scrum3
    Alpha Scrum2
    课程总结
    实验九
  • 原文地址:https://www.cnblogs.com/liweiming/p/10547394.html
Copyright © 2011-2022 走看看