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://t...@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."}


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ee976d3b-6208-4029-831e-8c5900a4124d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to