---
- name: copy configs
  template: >
    dest="{{ item.0.home }}/.composer/config.json"
    force=yes
    group="{{ item.0.group }}"
    mode="0600"
    owner="{{ item.0.name }}"
    src="{{ composer_files_path }}{{ item.1 }}"
  with_subelements:
    - composer_users
    - configs

---
- name: create dir for config files
  file: >
    group="{{ item.group }}"
    mode="0755"
    owner="{{ item.name }}"
    path="{{ item.home }}/.composer"
    state=directory
  with_items: composer_users

- name: copy configs
  template: >
    dest="{{ item.0.home }}/.composer/config.json"
    force=yes
    group="{{ item.0.group }}"
    mode="0600"
    owner="{{ item.0.name }}"
    src="{{ composer_files_path }}{{ item.1 }}"
  with_subelements:
    - composer_users
    - configs

Add 'create dir' task in 'composer' role
Add 'create dir' task in 'composer' role
