SVN Module Error

47 views
Skip to first unread message

mol...@unavco.org

unread,
Apr 25, 2016, 5:34:04 PM4/25/16
to Ansible Project
Hello,

I'm trying to use the svn core module to checkout/update a svn project. My understanding is that this module will checkout or update the svn project depending on whether it exists in the dest folder. 

Also what is standard practice for handling svn passwords? I don't believe it would be best practice to have the password in the playbook. Is there a way I can be prompted for the svn password? 

Here is my playbook: 

---

- hosts: test

  remote_user: root


  tasks:

# Checkout/update from svn    

  - name: update source from svn

    become_user: test

    become: yes

    become_method: su

    subversion: 

      repo: svn+ssh://my.svn/project

      dest: /home/test/test



cmd:

ansible-playbook svntest.yml --ask-pass -vvvv



Here is the output:


fatal: [test.org]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"dest": "/home/test/source", "executable": null, "export": false, "force": false, "password": null, "repo": "svn+ssh://te...@my.svn/repo", "revision": "HEAD", "switch": true, "username": null}, "module_name": "subversion"}, "msg": "ERROR: /home/test/test folder already exists, but its not a subversion repository."}


Reply all
Reply to author
Forward
0 new messages