forked from ISTI-ansible-roles/ansible-roles
23 lines
577 B
YAML
23 lines
577 B
YAML
---
|
|
- name: Install the Ubuntu PPA for nginx
|
|
apt_repository: repo='{{ nginx_ppa_repo }}'
|
|
when:
|
|
- nginx_use_ppa
|
|
- "'{{ ansible_distribution }}' == 'Ubuntu'"
|
|
tags: [ 'nginx', 'nginx_ppa' ]
|
|
|
|
- name: Install the nginx web server
|
|
apt: pkg={{ item }} state={{ nginx_package_state }} update_cache=yes
|
|
with_items:
|
|
- nginx-full
|
|
when: not nginx_use_ldap_pam_auth
|
|
tags: nginx
|
|
|
|
- name: Install the nginx web server if we need ldap auth via pam
|
|
apt: pkg={{ item }} state=installed
|
|
with_items:
|
|
- nginx-extras
|
|
when: nginx_use_ldap_pam_auth
|
|
tags: nginx
|
|
|