如何解决“致命:无法创建'/home/odoo/pyenv'的前导目录:权限被拒绝”
我在运行剧本时使用了这个 ansible odoo-role,它有如下任务在 pyenv.yml 文件中安装 PyEnv。 我正在从本地 ansible master 到远程 linux 18.04 节点执行此剧本。
- name: Install PyEnv
become: true
become_user: "{{ odoo_role_odoo_user }}"
git:
repo: https://github.com/pyenv/pyenv.git
dest: "/home/{{ odoo_role_odoo_user }}/pyenv"
update: no
我收到以下错误
[WARNING]: Module remote_tmp /opt/odoo/.ansible/tmp did not exist and was created with a mode of 0700,this may cause issues when running as another user. To avoid this,create the remote_tmp dir with the correct permissions manually
fatal: [remote-server]: FAILED! => {"changed": false,"cmd": "/usr/bin/git clone --origin origin https://github.com/pyenv/pyenv.git /home/odoo/pyenv","msg": "fatal: could not create leading directories of '/home/odoo/pyenv': Permission denied","rc": 128,"stderr": "fatal: could not create leading directories of '/home/odoo/pyenv': Permission denied\n","stderr_lines": ["fatal: could not create leading directories of '/home/odoo/pyenv': Permission denied"],"stdout": "","stdout_lines": []}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。