# Provision fails on 'Install Dependencies with Composer Task'

**URL:** https://discourse.roots.io/t/provision-fails-on-install-dependencies-with-composer-task/5741
**Category:** trellis
**Created:** 2016-01-22T11:28:33Z
**Posts:** 9
**Showing post:** 8 of 9

## Post 8 by @kregenrek — 2016-03-18T12:10:22Z

Hi,

i found some problems:

[https://github.com/fullyint/trellis/blob/known-hosts/roles/common/tasks/main.yml](https://github.com/fullyint/trellis/blob/known-hosts/roles/common/tasks/main.yml)

```
- name: Add known_hosts
  known_hosts:
    name: "{{ item.name }}"
    key: "{{ item.key | default(omit) }}"
    path: "{{ item.path | default('/home/' + web_user + '/.ssh/known_hosts') }}"
    state: "{{ item.state | default('present') }}"
  with_items: known_hosts | default([])
  tags: known-hosts
```

If you provision the server you will get an error if the **web\_user** doesn’t exist.  
So it will be better to add this line after the **roles/users** Task.

I’m gonna test the deploy then.

Regards Kevin

---

_[View the full topic](https://discourse.roots.io/t/provision-fails-on-install-dependencies-with-composer-task/5741)._
