I want to use a role with a template and want to use multiple config wiles with different names and values. I am using the group_vars directory which is on the same level as the playbook which hosts its runs.
Here's my sample playbook
---
- hosts: emea-stg-web
  vars_files:
    - group_vars/ssh_user.yml
  remote_user: "{{ ssh_user }}"
  become_user: root
  roles:
    - nginx-install
    - php5.6-install
I want to have each "item" in the role use different values, like variable "proj" can have values ["pro1","pro2","pro3"] in an iterative way. Any way I store them in a file.
---
- hosts: emea-stg-web
  vars_files:
    - group_vars/ssh_user.yml
  remote_user: "{{ ssh_user }}"
  become_user: root
  roles:
    - nginx-install
      with_items:
      - test1
      - test2
      - test3
    - php5.6-install