On 03. aug. 2017 02:12, Ted Meller wrote:
Tried that and ended up getting the below error:

fatal: []: FAILED! => {
     "failed": true


the field 'args' has an invalid value, which appears to include a variable
that is undefined. The error was: 'list object' has no attribute 'split'

The error appears to have been in '/home/ansible/4G.yml': line 22, column
7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

     - name: Show output
       ^ here

Since you output.stdout is a list you need to say which element in the list you would like to do a split on.

{{ output.stdout.0.split('\n') }}

Kai Stian Olstad

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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to