SVN Checkout not working in Ansible

svn ansible

598 观看

1回复

11 作者的声誉

While executing the ansible playbook for svn checkout in my server, the below error is throwing out.

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "ERROR: /var/www/html/svn/ folder already exists, but its not a subversion repository."}<br/>
        to retry, use: --limit @/etc/ansible/svn.retry<br/>

My Playbook code is,

---
-
  hosts: localhost
  name: "Checkout from SVN"
  tasks:
    -
      subversion: "repo=svn+ssh://source.mysite.net/svn/TMRep/source/ dest=/var/www/html/svn/ username=username password=password"
作者: Vinoth 的来源 发布者: 2017 年 9 月 15 日

回应 1


0

43194 作者的声誉

The error message says it:

ERROR: /var/www/html/svn/ folder already exists, but its not a subversion repository

If you doesn't care about content, try subversion with export=yes:

export – If yes, do export instead of checkout/update.

作者: Konstantin Suvorov 发布者: 2017 年 9 月 15 日
32x32