ansible-role-nginx/tasks/opensource/install-oss.yml
Vladimir Botka 27d94628bd Separate installation of Linux and BSD (#182)
* Added variable nginx_linux_families: ['Debian', 'RedHat', 'Suse']
* Added variable nginx_bsd_systems: ['FreeBSD', 'NetBSD', 'OpenBSD', 'DragonFlyBSD', 'HardenedBSD']
* Handler started only in "not ansible_check_mode" to avoid --check failure when service hes not been installed yet
* Installation of Linux moved to install-oss-linux.yml
* Installation of BSD moved to install-oss-bsd.yml
* File setup-freebsd.yml deleted
2019-11-18 21:09:10 +01:00

9 lines
233 B
YAML

---
- name: "(Install: OSS Linux)"
import_tasks: install-oss-linux.yml
when: ansible_os_family in nginx_linux_families
- name: "(Install: OSS BSD)"
import_tasks: install-oss-bsd.yml
when: ansible_system in nginx_bsd_systems