ansible終端操做範例

100.126.0.45    ansible_ssh_user=root ansible_ssh_pass='Paic1234'node

100.126.0.46    ansible_ssh_user=root ansible_ssh_pass='Paic1234'shell

 

 

ansible shb-sf -m copy -a "src=/chkusr/allan/szc-stg-sf/flanneld.service dest=/lib/systemd/system/"ssh

 

ansible shb-sf -m shell -a "cd /tmp/ && tar -xzvf auto_update_1.7.6-to-1.9.1.tar.gz"date

 

 

ansible shb-sf -m shell -a "yum install -y ntpdate && ntpdate ntp.yun.paic.com.cn"service

 

ansible sz1_node -m shell -a " cat /lib/systemd/system/flanneld.service"yum

 

ansible szd -m shell -a "kubectl config view" > tmp.logansible

 

yum install -y ntpdate && ntpdate ntp-1.cloud.pubview

相關文章
相關標籤/搜索