"Failed to find required executable svn in paths" Ansible SVN 结帐时出错
"Failed to find required executable svn in paths" error in Ansible SVN checkout
我正在尝试通过 运行 一本 Ansible 剧本使用 Ansible SVN 模块来检出一个 SVN 存储库。当我检查 SVN 存储库时,出现以下错误:
TASK [pipelinerole : Checkout/Update SVN repository] ***************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to find required executable svn in paths: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/sbin:/usr/sbin:/usr/local/sbin"}
[WARNING]: Could not create retry file '/home/pipelinesite.retry'.
[Errno 13] Permission denied: u'/home/pipelinesite.retry'
PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1
我正在为 运行 SVN Checkout 使用 Ansible 角色。我添加了用于 SVN 结帐的 YAML,如下所示:
- name: Checkout/Update SVN repository
subversion:
repo: http://<My-IP>/svn/pipeline
checkout: yes
update: yes
In_place: yes
force: yes
dest: ../../SpaceStudyTest
username: <My-Username>
password: <My-Password>
我的 SVN 密码和适当的权限已完成以检查目录。我在这里犯了什么错误?
您需要在系统上安装 'svn' 才能使用此 Ansible 模块。 the docs 中提到了它。错误是说 Ansible 无法在其环境的路径中找到 svn 命令。
如果尚未安装 'svn' 软件包,请安装。如果已安装,运行或者
which svn
或
find / -name 'svn' -type f
找到二进制文件,然后将 executable: <path returned by the previous commands>
添加到您的颠覆任务定义或将包含 'svn' 的目录添加到 $PATH 环境变量。
我正在尝试通过 运行 一本 Ansible 剧本使用 Ansible SVN 模块来检出一个 SVN 存储库。当我检查 SVN 存储库时,出现以下错误:
TASK [pipelinerole : Checkout/Update SVN repository] ***************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to find required executable svn in paths: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/sbin:/usr/sbin:/usr/local/sbin"}
[WARNING]: Could not create retry file '/home/pipelinesite.retry'.
[Errno 13] Permission denied: u'/home/pipelinesite.retry'
PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1
我正在为 运行 SVN Checkout 使用 Ansible 角色。我添加了用于 SVN 结帐的 YAML,如下所示:
- name: Checkout/Update SVN repository
subversion:
repo: http://<My-IP>/svn/pipeline
checkout: yes
update: yes
In_place: yes
force: yes
dest: ../../SpaceStudyTest
username: <My-Username>
password: <My-Password>
我的 SVN 密码和适当的权限已完成以检查目录。我在这里犯了什么错误?
您需要在系统上安装 'svn' 才能使用此 Ansible 模块。 the docs 中提到了它。错误是说 Ansible 无法在其环境的路径中找到 svn 命令。
如果尚未安装 'svn' 软件包,请安装。如果已安装,运行或者
which svn
或
find / -name 'svn' -type f
找到二进制文件,然后将 executable: <path returned by the previous commands>
添加到您的颠覆任务定义或将包含 'svn' 的目录添加到 $PATH 环境变量。