Method for formatting long attribute values over multiple lines?

10 views
Skip to first unread message

edroz...@gmail.com

unread,
Nov 28, 2015, 9:03:33 AM11/28/15
to Ansible Project
I need help trying to stick to 80 columns :).

In a number of my tasks, some attribute values get very long and I haven't found any means of breaking them up over several lines. A workaround is to put them into a vars file as a list/array. Is there any way to break up values across several lines in the playbook itself?

For example, the install_options value is huge for ffmpeg:

# Install ffmpeg
- name: install ffmpeg 
  homebrew: >
    name=ffmpeg
    install_options=with-faac,with-fdk-aac,with-ffplay,with-fontconfig,with-freetype,with-frei0r,with-libass,with-libbluray,with-libbs2b,with-libcaca,with-libquvi,with-libsoxr,with-libssh,with-libvidstab,with-libvorbis,with-libvpx,with-opencore-amr,with-openjpeg,with-openssl,with-opus,with-rtmpdump,with-schroedinger,with-snappy,with-speex,with-theora,with-tools,with-webp,with-x265
    state=latest


Thanks,
--Ed
Reply all
Reply to author
Forward
0 new messages