So r u saying like this.

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

- name: checking the service status on {{ansible_fqdn}}
  service:
    name: "{{ item }}"
    state: started
  with_items:  "{{ (notdefined is 
defined)|ternary((notdefined|default('')).split(','),[]) }}"

-- 
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/5012ec4b-d4f2-4c41-9b06-f8e3ce1ec555%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to