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 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/507abea0-9829-4576-afe4-ebbff465d75f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to