forked from ISTI-ansible-roles/ansible-roles
Fix the apt tasks.
This commit is contained in:
parent
ee585a6ac4
commit
7c19e0a3c7
|
@ -7,26 +7,20 @@
|
||||||
tags: [ 'nginx', 'nginx_ppa' ]
|
tags: [ 'nginx', 'nginx_ppa' ]
|
||||||
|
|
||||||
- name: Install the nginx web server
|
- name: Install the nginx web server
|
||||||
apt: pkg={{ item }} state={{ nginx_package_state }} update_cache=yes cache_valid_time=1800
|
apt: pkg=nginx-full state={{ nginx_package_state }} update_cache=yes cache_valid_time=1800
|
||||||
with_items:
|
|
||||||
- nginx-full
|
|
||||||
when:
|
when:
|
||||||
- not nginx_use_ldap_pam_auth
|
- not nginx_use_ldap_pam_auth
|
||||||
- ansible_distribution_major_version <= '14'
|
- ansible_distribution_major_version <= '14'
|
||||||
tags: nginx
|
tags: nginx
|
||||||
|
|
||||||
- name: Install the nginx web server if we need ldap auth via pam
|
- name: Install the nginx web server if we need ldap auth via pam
|
||||||
apt: pkg={{ item }} state={{ nginx_package_state }} update_cache=yes cache_valid_time=1800
|
apt: pkg=nginx-extras state={{ nginx_package_state }} update_cache=yes cache_valid_time=1800
|
||||||
with_items:
|
|
||||||
- nginx-extras
|
|
||||||
when:
|
when:
|
||||||
- nginx_use_ldap_pam_auth
|
- nginx_use_ldap_pam_auth
|
||||||
- ansible_distribution_major_version <= '14'
|
- ansible_distribution_major_version <= '14'
|
||||||
tags: nginx
|
tags: nginx
|
||||||
|
|
||||||
- name: Install the nginx web server on Ubuntu >= 16.04
|
- name: Install the nginx web server on Ubuntu >= 16.04
|
||||||
apt: pkg={{ item }} state={{ nginx_package_state }} update_cache=yes cache_valid_time=1800
|
apt: pkg=nginx state={{ nginx_package_state }} update_cache=yes cache_valid_time=1800
|
||||||
with_items:
|
|
||||||
- nginx
|
|
||||||
when: ansible_distribution_major_version >= '16'
|
when: ansible_distribution_major_version >= '16'
|
||||||
tags: nginx
|
tags: nginx
|
||||||
|
|
Loading…
Reference in New Issue