Simple query on usage of ">" in tasks.

15 views
Skip to first unread message

behzad...@gmail.com

unread,
Sep 2, 2015, 7:22:42 PM9/2/15
to Ansible Project
I am going through a playbook, where the tasks have the following format:


- name: Start and add that the metadata service to the init sequence (Ubuntu)

  service: >

    name=ceph-mds

    state=started

    enabled=yes

    args="id={{ ansible_hostname }}"

  when: ansible_distribution == "Ubuntu"



I didn't get the ">" on the line "service: >". I have never used it that way and was curious what it does.




regards,

Behzad

Brian Coca

unread,
Sep 2, 2015, 7:37:16 PM9/2/15
to Ansible Project
it is a YAMLism, allows for multiline content, you may have also seen
| used the same way.
> --
> 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/d36ebe4d-04f7-4dd6-b8aa-8f1c97806188%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages