griggheo / ansible-consul-template

Ansible role for installing consul-template
Apache License 2.0
54 stars 52 forks source link

issue copying upstart script during install #42

Open pgrinstead1 opened 5 years ago

pgrinstead1 commented 5 years ago

Hi,

I am seeing the following error when installing on CentOS7/RHEL 7.

TASK [griggheo.consul-template : copy consul-template upstart service configuration] *** fatal: [127.0.0.1]: FAILED! => {"changed": false, "checksum": "a77a962bc6c943ac70e8895d96a76d4c2d551a38", "msg": "Destination directory /etc/init does not exist"} ignoring

TASK [griggheo.consul-template : copy consul-template init.d script] *** skipping: [127.0.0.1]

amitkverma commented 5 years ago

use consul_template_use_systemd = true instead of consul_template_use_upstart

https://unix.stackexchange.com/questions/465336/init-scripts-invoking-script-on-a-users-directory-not-working-ubuntu-18-04