Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduced consul_systemd_service_name variable #591

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

isakrubin
Copy link

SUMMARY

introduced consul_systemd_service_name variable to allow specifying name of service (and related directories), solving the issue of running multiple instances on the same machine

ISSUE TYPE
  • Feature Pull Request

@@ -94,7 +94,7 @@
- name: Override systemd service params
ansible.builtin.template:
src: consul_systemd_service.override.j2
dest: /etc/systemd/system/consul.service.d/override.conf
dest: "/etc/systemd/system/{{ consul_systemd_service_name }}.service.d/override.conf"
Copy link
Contributor

@nre-ableton nre-ableton Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes an ansible-lint violation, since templating Ansible task names only works if the template is at the very end of the string. You'll need to reword the task (and drop the quotes) to make this work.

@rndmh3ro
Copy link
Collaborator

Can you add the new variable to the readme, please? Otherwise this looks good to me (when ansible-lint is happy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants