--- # configure vhosts - name: 'config - vhosts' ansible.builtin.copy: src: "{{ item }}" dest: '/etc/nginx/conf.d/' owner: 'root' group: 'root' mode: '0644' notify: 'restart nginx' with_fileglob: - "files/nginx/conf.d/*"