start servers using ansible playbook

Hello Team,

I am writing a playbook to start weblogic servers, could anyone help me any syntax errors, I could not make item/item display as it should be, or please feel free to correct me here if any incorrect syntax and would not work as expected.

Instead of loop, I'd recommend with_together.

- name: Start the managed server(s)
command: "{{item.0}}/{{item.1}}"
with_together:
  - "{{filepath}}"
  - "{{stopservers}}"

V/r,
James Cassell

Actually it's much simpler for your example:

- name: Start the managed server(s)
command: "{{filepath}}/{{item}}"
loop: "{{stopservers}}"

V/r,
James Cassell