Ansible学习(一):基础操作,ansible基础


ansible 操作

   97  ansible webservers -m service -a "name=httpd state=stopped"
   98  ansible webservers -m service -a "name=httpd state=start"
   99  ansible webservers -m service -a "name=httpd state=startted"
  100  ansible webservers -m service -a "name=httpd state=started"
  101  ansible webservers -m service -a "name=httpd state="
  102  ansible webservers -m service -a "name=httpd "
  103  ansible webservers -m command -a "tail -fn100 /var/log/error_log |grep error" 
  104  ansible webservers -m command -a "tail -fn100 /var/log/httpd/error_log |grep error" 
  105  ansible webservers -m command -a "cat /var/log/httpd/error_log |grep httpd running" 
  106  ansible webservers -m command -a "cat /var/log/httpd/error_log |grep httpd" 
  107  ansible webservers -m command -a "cat /var/log/httpd/error_log" 
  108  ansible webservers -m command -a "cat /var/log/httpd/error_log" |grpe services
  109  ansible webservers -m command -a "cat /var/log/httpd/error_log" |grep services
  110  ansible webservers -m command -a "cat /var/log/httpd/error_log|grep services"
  111  ansible webservers -m command -a "cat /var/log/httpd/error_log | grep services"
  112  ansible webservers -m command -a "cat /var/log/httpd/error_log" 
  113  ansible webservers -m command -a "grep context /var/log/httpd/error_log " 
  114  python
  115  ansible webservers -m command -a "grep context /var/log/httpd/error_log " 
  116  ansible webservers -m command -a "grep context /var/log/httpd/error_log" 
  117  ansible webservers -m command -a "grep context /var/log/httpd/error_log"
  118  history 
  119  ansible webservers -m service -a "name=httpd state=stopped"
  120  ansible webservers -m service -a "name=httpd state=startted"
  121  ansible webservers -m service -a "name=httpd state=started"
  122  history 1000
  123  ansible webservers -m command -a "grep context /var/log/httpd/error_log"
  124  ansible webservers -m command -a "grep  /var/log/httpd/error_log"
  125  ansible webservers -m command -a "grep context /var/log/httpd/error_log"

相关内容

    暂无相关文章