ansible goup1 -m copy -a 'src=xx1.sh dest=~/ mode=744'
ansible goup1 -m copy -a 'src=/dir/file1.tar.gz dest=/weblogic/ owner=weblogic group=weblogic mode=664'
ansible goup1 -m shell -k -a 'unzip -q /opt/server/apache-jmeter-5.1.1.zip -d /opt/server/'
ansible goup1 -m shell -k -a 'tar xf /opt/server/jdk-8u241-linux-x64.tar.gz -C /opt/server/'
# 删除一个文件/目录
ansible goup1 -m file -a "path=/tmp/resolv.conf state=absent"
|