forked from evolix/ansible-roles
26eec48954
Don't compare with empty string Name all tasks Variables should have space before and after their name
32 lines
863 B
YAML
32 lines
863 B
YAML
---
|
|
|
|
- name: "Choose if minifirewall will need to be restarted"
|
|
set_fact:
|
|
minifirewall_restart_handler_name: "{{ minifirewall_restart_if_needed | ternary('restart minifirewall', 'restart minifirewall (noop)') }}"
|
|
|
|
- name: "Check that API variables are set"
|
|
assert:
|
|
that:
|
|
- evomaintenance_api_endpoint is not none
|
|
- evomaintenance_api_key is not none
|
|
msg: evomaintenance api variables must be set
|
|
|
|
- include: install_package_debian.yml
|
|
when:
|
|
- not evomaintenance_install_vendor
|
|
- ansible_distribution == "Debian"
|
|
|
|
- include: install_vendor_debian.yml
|
|
when:
|
|
- evomaintenance_install_vendor
|
|
- ansible_distribution == "Debian"
|
|
|
|
- include: install_vendor_openbsd.yml
|
|
when:
|
|
- ansible_distribution == "OpenBSD"
|
|
|
|
- include: minifirewall.yml
|
|
when:
|
|
- evomaintenance_hook_db
|
|
- ansible_distribution == "Debian"
|