public-health-ch/ansible/roles/nginxinc.nginx/tasks/prerequisites/setup-freebsd.yml

18 lines
565 B
YAML
Raw Normal View History

2020-05-15 22:14:14 +00:00
---
- name: "(Install: FreeBSD) Install Required Dependencies"
block:
- name: "(Install: FreeBSD) Install Extra Package(s)"
pkgng:
name: "{{ nginx_freebsd_extra_packages }}"
state: present
when: nginx_bsd_install_packages|bool
- name: "(Install: FreeBSD) Install Extra Port(s)"
portinstall:
name: "{{ item }}"
use_packages: "{{ nginx_bsd_portinstall_use_packages | default(omit) }}"
state: present
loop: "{{ nginx_freebsd_extra_packages }}"
when: not nginx_bsd_install_packages|bool