Systemd override for Varnish #33
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: evolix/ansible-roles#33
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With this task, the override was not working :
The commit commit:6b3b693 changed the file name to
varnish.conf
instead ofvarnish.service
, but apparently the issue remained, hence the fix in commit:4be248c to simply copy the file.I can see 2 issues here :
This is a copy and not a template so we lose the variables in the configuration. It's easy to fix with a template. But this is not compatible with other modifications made out of Ansible. If a file already exists when Ansible runs, it is either ignored (
force: false
) or written over (force: yes
).I suggest we make sure that the file is present (with a touch, for example) then we keep the
ini_file
approach which respects other values in the file.When we move to Ansible 2.2, we can use the
create: yes
attribute of the module to create the file if it doesn't already exist (see http://docs.ansible.com/ansible/ini_file_module.html).I propose to use force: no to be as safe as possible.