# Do not run ansible-upstart

**URL:** <https://forum.ansible.com/t/do-not-run-ansible-upstart/21261>\
**Category:** Ansible Project\
**Created:** [April 25, 2016, 3:02pm UTC](https://forum.ansible.com/t/do-not-run-ansible-upstart/21261 "2016-04-25T15:02:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando\_Cagale](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@Fernando\_Cagale](https://forum.ansible.com/u/Fernando_Cagale)\
**Post date:** [April 25, 2016, 3:02pm UTC](https://forum.ansible.com/t/do-not-run-ansible-upstart/21261/1 "2016-04-25T15:02:14Z")

</div>

Hello

I’m doing a test with ansible using the “upstart”, but is not run “upstart exec path”.

Below example api.yml.

Does anyone have any idea why you’re not running?

He did not start my Node.js API.

{{app\_path}} = /var/app/cart

{{app\_bin}} = index.js

{{http\_host}} = 127.0.0.1  
{{http\_port}} = 3000

| 
- hosts: api

 |
| | 

remote\_user: root

 |
| | 

roles:

 |
| | 
- role: franklinkim.environment

 |
| | 
- role: nodesource.node

 |
| | 
- role: node

 |
| | 
- role: telusdigital.upstart

 |
| | 

upstart\_name: “{{app\_name}}”

 |
| | 

upstart\_start\_on:

 |
| | 
- started networking

 |
| | 

upstart\_stop\_on:

 |
| | 
- stopping networking

 |
| | 

upstart\_respawn: yes

 |
| | 

upstart\_respawn\_limit: yes

 |
| | 

upstart\_respawn\_limit\_count: 5

 |
| | 

upstart\_respawn\_limit\_interval: 20

 |
| | 

upstart\_user: “{{deploy\_user}}”

 |
| | 

upstart\_group: “{{deploy\_group}}”

 |
| | 

upstart\_exec\_path: “/usr/bin/node {{app\_path}}/{{app\_bin}}”

 |
| | 

upstart\_exec\_flags:

 |
| | 
- “chdir={{app\_path}}”

 |
| | 

upstart\_environment\_global: no

 |
| | 

upstart\_environment:

 |
| | 
- {name: NODE\_ENV, value: production}

 |
| | 
- {name: SERVER\_PORT, value: “{{http\_port}}”}

 |
| | 
- role: geerlingguy.haproxy

 |
| | 

haproxy\_backend\_servers:

 |
| | 
- name: “{{app\_name}}”

 |
| | 

address: “{{http\_host}}:{{http\_port}}”

 |
| | 
- haproxy

 |
