---
title: "Disable changes to hosts files when running opsview-deploy"
description: "The opsview-deploy command can modify the /etc/hosts files on Opsview hosts, but this behavior can be disabled. To prevent changes, set the opsviewhostupdateetchosts variable to False in uservars.yml, and manage hosts files manually thereafter."
url: "https://docs.itrsgroup.com/docs/faq/opsview/4921217852957-opsview-disable-changes-to-hosts-files-when-running-opsview-deploy/index.html"
---
When you run `opsview-deploy`, it can modify the `/etc/hosts` files on the [Opsview hosts](https://docs.itrsgroup.com/docs/faq/opsview/4920387360029-opsview-opsview-host/index.html) it runs against. You can disable this behavior. After doing so, you will need to manage the `/etc/hosts` files of your Opsview hosts yourself. See our article on [managing collector hosts files](https://support.itrsgroup.com/hc/en-us/articles/4921557498269) for more information.

## Prerequisites

- None

### Process

1. Log in to the [orchestrator](https://docs.itrsgroup.com/docs/faq/opsview/4920429084957-opsview-orchestrator/index.html) as `root`.
2. Open [user_vars.yml](https://docs.itrsgroup.com/docs/faq/opsview/4997107149853-opsview-user-vars-yml/index.html) in your preferred text editor.

**YML editing**

Take care to ensure proper formatting when editing YML files, including using only two spaces per level of indentation.

3. Locate the variable `opsview_host_update_etc_hosts` and set it to `False`, e.g.

```
opsview_host_update_etc_hosts: False
```

Uncomment this variable if it is commented out.

If the `opsview_host_update_etc_hosts` variable is not defined in your `user_vars.yml` file, add the above definition to the end of your `user_vars.yml` file.

4. Add the following variable definition to a new line beneath `opsview_host_update_etc_hosts: False`:

```
opsview_host_resolve_groups: []
```

Your `user_vars.yml` file should now contain both of these lines:

```
opsview_host_update_etc_hosts: False
opsview_host_resolve_groups: []
```

Next time you run `opsview-deploy`, it will not change the `/etc/hosts` files on any of your Opsview hosts. You do not need to run any playbooks to apply this new setting, it will be used automatically for all future runs of `opsview-deploy`.


