Re: Can't use register module (error).

43 views
Skip to first unread message

David Álvarez

unread,
Apr 4, 2014, 9:09:46 PM4/4/14
to ansible...@googlegroups.com
Hello again,

I found the problem, only has indentation.

Thanks.


On Fri, Apr 4, 2014 at 1:01 PM, David Álvarez <david.a...@gmail.com> wrote:
Hello community,

I'm learning this tool, and it's great =).

My first problem is when I'm testing register module, Ansible show me a error:

Error: Syntax Error while loading YAML script, test_monitor.yml
Note: The error may actually appear before this position: line 8, column 1

- name: Output command

This is the playbook:

---
- hosts: all
  user: root
  sudo: no

  tasks:

    - name: Output command
      command: echo "Hello"
      register: hello
    - debug: msg="{{ hello.stdout }}"

Ansible version: 1.4.4 on Debian 6.0.5

I can't found this problems on Google.

Thanks for your help.

Greetings.



David Álvarez

unread,
Apr 4, 2014, 12:01:41 PM4/4/14
to ansible...@googlegroups.com

Michael DeHaan

unread,
Apr 9, 2014, 9:31:57 AM4/9/14
to ansible...@googlegroups.com
Great!

FYI, the current released version of Ansible is 1.5.4, so 1.4.X is missing various fixes, including security fixes -- so you shouldn't be running it.

Switch to 1.5.4 or the development branch when you get a chance.


--
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/CACGH7Pv9h9kRs%3DeHY2R49oef1xWDFCHmM6OuEpvSCxTnevfqAA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages