Ansible playbook won't run.

35 views
Skip to first unread message

Jonty Needham

unread,
Jan 30, 2017, 8:54:35 AM1/30/17
to Ansible Project
---
-
  hosts: localhost
  subversion:
    repo: https://path/to/my/repo
    dest: /tmp/
    username: my_username
    password: my_password

I'm using the above playbook, or trying to to check out a repo from subversion. A similar repo gets a file from a URL and puts it into /tmp successfully.

Can anyone tell me what is wrong with this one please?

Brian Coca

unread,
Jan 30, 2017, 11:19:09 AM1/30/17
to ansible...@googlegroups.com
That is not a valid play, this is:

- hosts: localhost
  tasks:
    - subversion:
        repo: "https://path/to/my/repo"
        dest: /tmp/
        username: my_username
        password: my_password

​please read the https://docs.ansible.com/ansible/ to get a handle on how to write plays.​

----------
Brian Coca

Jonty Needham

unread,
Jan 31, 2017, 5:36:51 AM1/31/17
to Ansible Project
Great -- thanks. What a fail!
Reply all
Reply to author
Forward
0 new messages