/piliangceshimiyao.sh # - name: anzhuangrsync # shell: /server/tools/rsyncpiliang.yml # - name: anzhuangnfs # shell: /server/tools/nfspiliang.yml - hosts: 172.16.1.141 tasks: - name: chuangjianmulu141 shell: mkdir -p /server/tools/ #创建所在配置的文件 - name: peizhi141 copy: src=/server/tools/quanwangrsync.sh dest=/server/tools/quanwangrsync.sh - name: rsyncdajian141 script: /server/tools/quanwangrsync.sh - hosts: 172.16.1.108 tasks: - name: chuangjianmulu108 shell: mkdir -p /server/tools/ #创建所在配置的文件 - name: peizhi108 copy: src=/server/tools/quanwangweb.sh dest=/server/tools/quanwangweb.sh - name: quanwangweb108 script: /server/tools/quanwangweb.sh - hosts: 172.16.1.131 tasks: - name: chuangjianmulu131 shell: mkdir -p /server/tools/ #创建所在配置的文件 - name: peizhi131 copy: src=/server/tools/quanwangnfs.sh dest=/server/tools/quanwangnfs.sh - name: quanwangnfs.sh131 script: /server/tools/quanwangnfs.sh
经历的错误
是因为在剧本里运行剧本的原因
是以为我创建了rsync这个用户 所以报错没办法创建
是因为我没有给61管理端也发密钥
|