您的位置 首页 错误

If you are using a module and expect the file to exist on the remote, see the remote_src option

 

问题的原因: 就是 需要用 template 而不是copy

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [web01] (item={u'dest': u'/etc/php.ini', u'src': u'php.ini'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "/etc/php.ini", "src": "php.ini"}, "msg": "Could not find or access ' php.ini '\nSearched in:\n\t/etc/ansible/roles/session/files/ php.ini \n\t/etc/ansible/roles/session/ php.ini \n\t/etc/ansible/roles/session/tasks/files/ php.ini \n\t/etc/ansible/roles/session/tasks/ php.ini \n\t/etc/ansible/roles/files/ php.ini \n\t/etc/ansible/roles/ php.ini  on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [web02] (item={u'dest': u'/etc/php.ini', u'src': u'php.ini'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "/etc/php.ini", "src": "php.ini"}, "msg": "Could not find or access ' php.ini '\nSearched in:\n\t/etc/ansible/roles/session/files/ php.ini \n\t/etc/ansible/roles/session/ php.ini \n\t/etc/ansible/roles/session/tasks/files/ php.ini \n\t/etc/ansible/roles/session/tasks/ php.ini \n\t/etc/ansible/roles/files/ php.ini \n\t/etc/ansible/roles/ php.ini  on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [web01] (item={u'dest': u'/etc/php-fpm.d/www.conf', u'src': u'www.conf'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "/etc/php-fpm.d/www.conf", "src": "www.conf"}, "msg": "Could not find or access ' www.conf '\nSearched in:\n\t/etc/ansible/roles/session/files/ www.conf \n\t/etc/ansible/roles/session/ www.conf \n\t/etc/ansible/roles/session/tasks/files/ www.conf \n\t/etc/ansible/roles/session/tasks/ www.conf \n\t/etc/ansible/roles/files/ www.conf \n\t/etc/ansible/roles/ www.conf  on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [web02] (item={u'dest': u'/etc/php-fpm.d/www.conf', u'src': u'www.conf'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "/etc/php-fpm.d/www.conf", "src": "www.conf"}, "msg": "Could not find or access ' www.conf '\nSearched in:\n\t/etc/ansible/roles/session/files/ www.conf \n\t/etc/ansible/roles/session/ www.conf \n\t/etc/ansible/roles/session/tasks/files/ www.conf \n\t/etc/ansible/roles/session/tasks/ www.conf \n\t/etc/ansible/roles/files/ www.conf \n\t/etc/ansible/roles/ www.conf  on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章