ansible -i ~/hosts_jzyw/hosts_zq_ha scc -m shell -a "cd /home/ucp/ipcc/scc/conf/ && diff SCC.xml SCC.xml.bak20230328"
时间: 2023-10-04 14:09:13 浏览: 95
ansible-ssh_known_hosts:Ansible角色来管理etcsshssh_known_hosts
&& ls -l"
This Ansible command will execute a shell command on the host group "scc" which is defined in the inventory file located at "~/hosts_jzyw/hosts_zq_ha". The shell command to be executed is "cd /home/ucp/ipcc/scc/conf/ && ls -l" which changes the current directory to "/home/ucp/ipcc/scc/conf/" and lists the files in the directory using the "ls -l" command.
阅读全文