ansible.flexlm/handlers/main.yml

10 lines
335 B
YAML
Raw Permalink Normal View History

---
# handlers file for flexlm
- name: restart flexlm services
service:
name: '{{ "flexlm-" + item.name }}'
2018-02-28 14:43:40 +01:00
state: '{{ "restarted" if (flexlm__deploy_state == "present" and (item.service | d(True) | bool)) else "stopped" }}'
enabled: '{{ item.service | d(True) | bool }}'
with_flattened:
- '{{ flexlm__licences }}'