标签:not found 内容 check ace line fan led ext 提示
ansible -i t4 st -m copy -a ‘src=/opt/shell/yum/rhe65.repo dest=/tmp/ owner=watson group=watson mode=644 backup=yes‘
[rhe65] name=rhe65 baseurl=ftp://192.168.20.25/pub/rhel65/ gpgcheck=0 enabled=1
#!/bin/bash cd /tmp wget ftp://192.168.20.25/zabbix/zabbix_agent.zip unzip zabbix_agent.zip mv zabbix_agent /usr/local/ mv zabbix_agentd /etc/init.d/ useradd zabbix chmod 755 /etc/init.d/zabbix_agentd cp /usr/local/zabbix_agent/sbin/zabbix_agentd /usr/local/sbin/ service zabbix_agentd start rm -rf /tmp/zabbix_agent.zip
ansible -i /opt/shell/lizuofang/beleve/19/hosts_19 dev -m copy -a ‘src=/opt/shell/zabbix/install_agent.sh dest=/tmp/ owner=watson group=watson mode=755 backup=yes‘
ansible -i /opt/shell/lizuofang/beleve/19/hosts_19 dev -m shell -a ‘bash /tmp/install_agent.sh‘ -K --become
ansible -i t2 sh -m shell -a ‘yum install libselinux-python -y ‘ -K --become
yum install libselinux-python -y
ansible -i t2 sh -m shell -a ‘yum install lsof -y ‘ -K --become#如果提示已经安装,没能解决就用下面的命令
ansible -i /opt/shell/lizuofang/beleve/19/hosts_19 dev -m shell -a ‘PAHT="/usr/local/sbin:/usr/sbin:/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin";source /etc/profile;bash /tmp/install_agent.sh‘ -K --become
标签:not found 内容 check ace line fan led ext 提示
原文地址:http://www.cnblogs.com/losbyday/p/7375320.html