Hi Brian,

i have defined like this:-

- name: Reloading Service on {{ansible_fqdn}}
  service:
    name: "{{ item }}"
    state: reloaded
  with_items:  "{{ servicename.split(',') | 
ternary((notdefined|default('')).split(','),[]) }}"

fatal: [node1]: FAILED! =>
  msg: '''list object'' has no attribute ''split'''

Again getting error.


On Thursday, September 27, 2018 at 10:31:08 PM UTC+5:30, Brian Coca wrote:
>
> just substitute for notdefined 
>
>
>
> -- 
> ---------- 
> Brian Coca 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1246abd9-e52f-4d2f-9403-becdf2dc8eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to