Ansible does not create directories CentOS7 This my ansible script 

- hosts: localhost
  tasks:
    - file:
       name: add dir
       path: /etc/ansible/roles/webservers/'{{item}}'
       state: directory
       mode: 0755
       owner: nikola
      vars:
       dir_list:
        - handlers
        - vars
        - defaults
        - meta
      with_items: ' {{ dir_list }} '


and this is the output from --check option

PLAY [localhost] ****************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [file] *********************************************************************************************************************************************************************************************************************************
ok: [localhost] =&gt; (item=handlers)
ok: [localhost] =&gt; (item=vars)
ok: [localhost] =&gt; (item=defaults)
ok: [localhost] =&gt; (item=meta)

PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0
You have two mistakes:


name as parameter of file module. It is an alias of path, so you actually try to create directory add dir.
Unnecessary single quotes in path, giving you actual paths like etc/ansible/roles/webservers/'handlers'.


Try with:

...
- name: add dir
  file:
    path: '/etc/ansible/roles/webservers/{{ item }}'
...