Skip to content

Commit

Permalink
ovirt-guest-agent: remove variable from handler name (#135)
Browse files Browse the repository at this point in the history
It fails for different value from defaults
  • Loading branch information
lukas-bednar authored Jul 18, 2017
1 parent 38df5be commit 4548da0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/ovirt-guest-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Role Variables

```yaml
---
ovirt_guest_agent_pkg_prefix: "ovirt|rhevm|qemu"
ovirt_guest_agent_pkg_prefix: "ovirt|rhevm"
```
Default value if variable not given is ```ovirt```.
Expand Down
5 changes: 3 additions & 2 deletions roles/ovirt-guest-agent/handlers/main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: enable and start {{ ovirt_guest_agent_pkg_prefix }}-guest-agent
- name: enable and start guest-agent service
service:
name: "{{ ovirt_guest_agent_pkg_prefix }}-guest-agent"
# Name of service is same for both packages (ovirt/rhevm)
name: "ovirt-guest-agent"
state: started
enabled: yes
2 changes: 1 addition & 1 deletion roles/ovirt-guest-agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
state: latest
with_items:
- "{{ ovirt_guest_agent_pkg_prefix }}-guest-agent"
notify: enable and start {{ ovirt_guest_agent_pkg_prefix }}-guest-agent
notify: enable and start guest-agent service
tags:
- skip_ansible_lint

0 comments on commit 4548da0

Please sign in to comment.