创建/data/logs目录 并改为lx用户
ansible push_javas -m file -a "path=/data/logs state=directory mode=0755 owner=lx group=lx"
创建软连接/data/logs目录 到/home/lx/logs 并改为lx用户
ansible push_javas -m file -a "src=/data/logs dest=/home/lx/logs state=link owner=lx group=lx"
网友评论