# Deploy a DotNet Service with Ansible

The following shell command will deploy the binaries and appropriate configuration for a service, to an inventoried host:

```bash
ansible-playbook deploy-service.yml \
-e "var_host=blissdev" \
-e "var_binrepo=oga-built-dev" \
-e "var_servicename=OGA.HostControl.Service" \
-e "var_description=OGA.HostControl.Service" \
-e "var_company=bliss" \
-e "var_envname=dev" \
-e "var_hasnotification=true" \
-e "var_ipaddress=192.168.1.201" \
-e "var_port=4180" \
--ask-vault-pass
```

<div class="code-block  cc-wroouh" id="bkmrk-"></div>NOTE: The hasnotification variable is only required for the service that needs a firebase configuration.  
Currently, this is the cloud service test.

NOTE: Set the Jenkins user password in the “userpass” argument.

Set the service name argument to the name of the service to deploy:

`Bliss.SignupService.API`  
`cloudservice_test1`

Set the var\_host to the inventoried host that will receive the service install.  
These are listed in the host inventory file in Ansible.

Set the environment name to specify which set of configuration data will be included with the service.  
This can be set to dev or prod.