wodezz

Results 11 comments of wodezz

是啊 现在遇到问题了 没法交流

已经将ans_playbook_websocket.py下的 resource = GenResource().gen_group_dict(group_ids) 改为 resource ,group_name= GenResource().gen_group_dict(group_ids) 但是执行后还是没东西 ![image](https://user-images.githubusercontent.com/17846193/146324846-d9db0344-1120-46bf-afd4-33d94d3705d4.png) 还有就是yml到底是要怎么写才可以,我写了个测试的 --- - hosts: all tasks: - name: copy file copy: src=/root/initial-setup-ks.cfg dest=/root/initial-setup-ks.cfg

已经将ans_playbook_websocket.py下的 resource = GenResource().gen_group_dict(group_ids) 改为 resource ,group_name= GenResource().gen_group_dict(group_ids) 但是执行后还是没东西 ![image](https://user-images.githubusercontent.com/17846193/146324846-d9db0344-1120-46bf-afd4-33d94d3705d4.png) 还有就是yml到底是要怎么写才可以,我写了个测试的 --- - hosts: all tasks: - name: copy file copy: src=/root/initial-setup-ks.cfg dest=/root/initial-setup-ks.cfg

![image](https://user-images.githubusercontent.com/17846193/146487964-710583ed-6b29-4a6a-8506-9e77233746da.png)

添加主机组列表的时候 主机组名称不能是中文吧,写成英文 然在playbook里面- hosts: 主机组名称 这样写吗

好的 谢谢了

![image](https://user-images.githubusercontent.com/17846193/34350458-c24908b2-ea51-11e7-87d7-40cbb0003496.png) 但是还是把服务器上面的images目录删掉了

![image](https://user-images.githubusercontent.com/17846193/34371935-073aa4f2-eb0c-11e7-80f6-f8b1f8ee56e0.png) 我试了 还是把线上的images目录删除了 @welliamcao

就在 /data/tomcat/webapps/ROOT/ 这个目录下面