# file: nginx/meta/main.yml

galaxy_info:
  author: pjan vandaele
  company: Ansibles
  description: Install and configure Nginx
  min_ansible_version: 1.4
  license: MIT
  platforms:
  - name: Ubuntu
    versions:
    - all
  categories:
  - system

dependencies:
  - Ansibles.hostname
  - Ansibles.apt
  - Ansibles.build-essential
  - Ansibles.perl
  - role: Ansibles.monit
    when: monit_protection is defined and monit_protection == true

# file: nginx/meta/main.yml

galaxy_info:
  author: pjan vandaele
  company: Ansibles
  description: Install and configure Nginx
  min_ansible_version: 1.4
  license: MIT
  platforms:
  - name: Ubuntu
    versions:
    - all
  categories:
  - system

dependencies:
  - Ansibles.hostname
  - Ansibles.apt
  - role: Ansibles.build-essential
    when: nginx_install_method is defined and nginx_install_method == "source"
  - role: Ansibles.perl
    when: nginx_install_method is defined and nginx_install_method == "source"
  - role: Ansibles.monit
    when: monit_protection is defined and monit_protection == true

Add conditions to source building dependencies
Add conditions to source building dependencies

This means that the `build-essential` and `perl` dependancies aren't installed if we're not compiling from source.