If upstart is used, add symlink: /etc/init.d/nginx -> /lib/init/upstart-jobsusefix
- file: /etc/nginx/conf.d/default.conf | - file: /etc/nginx/conf.d/default.conf | ||||
- file: /etc/nginx/conf.d/example_ssl.conf | - file: /etc/nginx/conf.d/example_ssl.conf | ||||
- pkg: nginx | - pkg: nginx | ||||
# Create 'service' symlink for tab completion. | |||||
{% if use_upstart %} | |||||
/etc/init.d/nginx: | |||||
file.symlink: | |||||
- target: /lib/init/upstart-job | |||||
{% endif %} |