subversion export issue

26 views
Skip to first unread message

rajendra...@gmail.com

unread,
Nov 16, 2018, 7:48:45 AM11/16/18
to Ansible Project
Hi All,

I am trying to export subversion repo using ansible-playbook.

---
- hosts: remoteserver
  tasks:
  - name: "checkout subversion repo "
    subversion:
     repo=<url>
     dest=/abc/xyz/subdir
     force=yes
     export=yes
     username={{ subversion_username }}
     password={{ subversion_password }}


ran the playbook
ansible-playbook subversion.yml --ask-vault-pass


Error message:

Vault password:

PLAY [remoteserver] *****************************************************************************************************************************************

TASK [Gathering Facts] **************************************************************************************************************************************
ok: [abc.com]

TASK [checkout subversion repo] *****************************************************************************************************************************
fatal: [abc.com]: FAILED! => {"changed": false, "cmd": "/usr/bin/svn --non-interactive --trust-server-cert --no-auth-cache --username '' --password '********' export --force -r HEAD <repo_url> /abc/xyz/subdir", "msg": "svn: E175002: Unable to connect to a repository at URL '<repo_url>'\nsvn: E175002: OPTIONS of '<repo_url>': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (<repo_url>)", "rc": 1, "stderr": "svn: E175002: Unable to connect to a repository at URL '<repo_url>'\nsvn: E175002: OPTIONS of '<repo_url>': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (<repo_url>)\n", "stderr_lines": ["svn: E175002: Unable to connect to a repository at URL '<repo_url>'", "svn: E175002: OPTIONS of '<repo_url>': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (<repo_url>)"], "stdout": "", "stdout_lines": []}

PLAY RECAP **************************************************************************************************************************************************
abc.com     : ok=1    changed=0    unreachable=0    failed=1



Dick Visser

unread,
Nov 16, 2018, 9:47:59 AM11/16/18
to ansible...@googlegroups.com
It doesn't get any clearer that this.
Your svn repo is probably an HTTPS one, but you're using a hostname
that isn't in the certificate.
Hence, svn will bail out.


Dick
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ae8d742c-459f-48d6-9a64-38b8a2891c0d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages