# 'sudoer_passwords' is undefined (LXD)

**URL:** https://discourse.roots.io/t/sudoer-passwords-is-undefined-lxd/6493
**Category:** trellis
**Created:** 2016-04-19T08:54:00Z
**Posts:** 4

## Post 1 by @treb0r — 2016-04-19T08:54:00Z

I’ve run into this issue and I can’t find a solution.

I’m trying to provision a local development environment, using admin\_user: root.

I’ve run through the steps numerous times but I keep seeing the same error:

`'sudoer_passwords' is undefined fatal: [10.0.4.132]: FAILED! => {"failed": true}`

Am I correct in thinking I only need to set up sudoer passwords if using the admin user?

I’ve got the latest version of trellis.

I’m running ansible 2.0.1.0 on Ubuntu 14.04.4 on both host and VM.

---

## Post 2 by @treb0r — 2016-04-19T10:22:21Z

So I tried going back to Vagrant/Virtualbox and everything works fine.

This issue seems to only affect LXD based containers.

Now I wonder what might be causing this?

Both Ansible and LXD have had major upgrades recently.

---

## Post 3 by @fullyint — 2016-04-19T15:44:44Z

@treb0r The sudoer password definitions are used in the `users` role. Standard Trellis runs `dev.yml` for development and `server.yml` for staging/production. Given that `dev.yml` does not run the `users` role, [roots/trellis#560](https://github.com/roots/trellis/pull/560) removed the unused sudoer password definitions from `group_vars/development`.

However, I see that you are probably provisioning your [LXD container](https://roots.io/linux-containers-lxd-as-an-alternative-to-virtualbox-for-wordpress-development/) as development using `server.yml`. This means the `users` role will run and need the sudoer password definitions, but will no longer find them in `group_vars/development`.

You could evaluate whether it better suits your needs to use `dev.yml` instead, or to add back in the sudoer password definitions that were removed in [roots/trellis#560](https://github.com/roots/trellis/pull/560).

---

## Post 4 by @treb0r — 2016-04-19T18:46:47Z

@fullyint that’s great, thanks.

I decided to add back the sudoer definitions for now and I’m back up and running in LXD land.

I need to keep a closer eye on the commit log for trellis!
